Skip to content

be-generic/be-generic-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Be-Generic Code Base Sample

Description

This sample can be used as a guide to how Be-Generic Codeb Base can be used on a practical example of HR application.

Installation

To install, first fork/clone repository and then follow these steps:

  • Prepare an empty database on MS SQL server (2016 or newer)
  • Open the sample solution in Visual Studio
  • Perform these operations in the opened solution in Visual Studio:
    • Revise connection string with correct database data in BeGeneric project in appsettings.json and appsettings.development.json
    • Right-click on BeGenericDatabase database project and select "Schema compare..." option. Then perform a schema compare with empty database and Update it
    • Copy contents of FillSampleData.sql file in BeGenericDatabase database project and paste and run it on the selected database
  • Enjoy the very easily made Be-Generic-based backend 😉

Warning

Build the solution TWICE. All the Models, DTO Models and Entity Framework context get created automatically, and Visual Studio will usually fail the first build. Usually pre-build scripts don't take long, but if they do and build always fails, check the connection string in the appsettings.json and appsettings.development.json

License

be-generic is fair-code distributed under the Sustainable Use License.

Additional information about the license model can be found in the docs.

About

Sample project of be-generic deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 89.3%
  • TSQL 10.7%