Dalibor Votruba ecfee469fc model 1.0.8 преди 4 години
..
Entity ecfee469fc model 1.0.8 преди 4 години
Repository ecfee469fc model 1.0.8 преди 4 години
Data.csproj b0c5447b1d Initial commit (structure + current version) преди 4 години
KeyScalarDate.cs b0c5447b1d Initial commit (structure + current version) преди 4 години
readme.txt ecfee469fc model 1.0.8 преди 4 години

readme.txt

Upd: 2.8.2021

To reverse update:
- Set Data project as Startup Project
- Ensure if solution is buildable - backup Entity folder
- Open PM (Package Manager Console from View menu)
- Run following command
Scaffold-DbContext "Server=(local);Database=BO;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Entity -Force
- Go to file BOContext.cs and replace class declaration as : public partial class BOContext : DataDomain
- replace in all entities // // public long Id { get; set; } -> // // // public long Id { get; set; }
- replace in BOContext.cs occurency [ln cca:1069]:
modelBuilder.Entity(entity =>
{
entity.HasNoKey();

to:

modelBuilder.Entity(entity =>
{
// entity.HasNoKey();

- replace in BOContext.cs occurency [ln cca:1139]:
entity.HasOne(d => d.BillingInfo)
.WithMany(p => p.Workspaces)
.HasForeignKey(d => d.BillingInfoId)
.HasConstraintName("REL_Workspace_BillingInfo");

to:

//entity.HasOne(d => d.BillingInfo)
// .WithMany(p => p.Workspaces)
// .HasForeignKey(d => d.BillingInfoId)
// .HasConstraintName("REL_Workspace_BillingInfo");