EntityFramework-Reverse-POCO-Code-First-Generator
EntityFramework-Reverse-POCO-Code-First-Generator copied to clipboard
EntityFramework Reverse POCO Code First Generator - Beautifully generated code that is fully customisable. This generator creates code as if you reverse engineered a database and lovingly created the...
Properties for period columns in a temporal table is generated when it's hidden ```sql CREATE TABLE Department ( DeptID INT NOT NULL PRIMARY KEY CLUSTERED , DeptName VARCHAR(50) NOT NULL...
When model binding a string with empty string the value is set to null since string is a reference type. When the column is set to not null/required the ModelState...
We moved the EF from CodeFirstDatabase to your POCO Generator. One issue we have left is how EF creates the "HasDescriminator" when the code has say this Table: Address Columns:...
Hi Simon. A real amazing work. How can I decorate a base class with abstract in a Table per Type (TPT) pattern (e.g.) or generate virtual methods?
Add computed columns SQL, so that migrations can fully create the database elsewhere. See [MSDN](https://docs.microsoft.com/en-us/ef/core/modeling/generated-properties?tabs=data-annotations#computed-columns) ```c# protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .Property(p => p.DisplayName) .HasComputedColumnSql("[LastName] + ', '...
```csharp var userClimColumns = new List { "Id", "UserId","ClaimType","ClaimValue"}; if (userClimColumns .Contains(column.NameHumanCase) && table.NameHumanCase=="Security_UserClaim") { column.Hidden = true; column.ExistsInBaseClass = true; } ``` 
lets say I have a table ( Ef6, .net framework 4.8 ) [foo].[Bar] where schema is "foo" and the table is "Bar" How can I change the class files produced...
I have a MSSQL stored procedure that has the parameter. `@GeoLocation geography = null` Poco is generating the following: ```c# var geoLocationParam = new SqlParameter { ParameterName = "@GeoLocation", UdtTypeName...
`AddExtendedPropertiesToFilters(DatabaseReader.ReadExtendedProperties());` is called after AddTablesToFilters (which calls UpdateColumn), so when the Settings.UpdateColumn delegate is called column.ExtendedProperties is null, so the following example in database.tt won't work: ``` // Use the...