You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
BaseEntityClass=null; // Base Entity class name. If null - none.
56
+
DatabaseName=null; // Table database name - [Table(Database="DatabaseName")].
57
+
GenerateDatabaseName=false; // Always generate table database name, even though DatabaseName is null.
58
+
IncludeDefaultSchema=true; // Default schema name is generated - [Table(Database="Northwind", Schema="dbo", Name="Customers")]
62
59
63
-
ReplaceSimilarTables=true; // Replaces stored procedure result class names with similar to existing table class names.
64
-
GenerateFindExtensions=true; // Generates find extension methods based on PKs information.
65
-
IsCompactColumns=true; // If true, column compact view.
60
+
OneToManyAssociationType="IEnumerable<{0}>"; // One To Many association type (for members only). Change it to "List<{0}>" if needed.
61
+
GenerateAssociations=true; // Enforce generating associations as type members.
62
+
GenerateBackReferences=true; // Enforce generating backreference associations (affects both members and extensions).
63
+
GenerateAssociationExtensions=false; // Enforce generating associations as extension methods. NB: this option does not affect GenerateAssociations. This will require linq2db 1.9.0 and above
64
+
65
+
ReplaceSimilarTables=true; // Replaces stored procedure result class names with similar to existing table class names.
66
+
GenerateFindExtensions=true; // Generates find extension methods based on PKs information.
67
+
IsCompactColumns=true; // If true, column compact view.
66
68
67
69
PluralizeClassNames=false; // If true, pluralizes table class names.
68
70
SingularizeClassNames=true; // If true, singularizes table class names.
GetSchemaOptions.IncludedCatalogs=new[] { "TestUser", "SYS" }; // Defines only included catalogs.
91
+
92
+
Func<string, bool, string>ToValidName=ToValidNameDefault; // Defines function to convert names to valid (My_Table to MyTable)
93
+
Func<string, bool, string>ConvertToCompilable=ConvertToCompilableDefault; // Converts name to c# compatible. By default removes uncompatible symbols and converts result with ToValidName
94
+
95
+
Func<ForeignKey, string>GetAssociationExtensionSinglularName=GetAssociationExtensionSinglularNameDefault; // Gets singular method extension method name for association
96
+
Func<ForeignKey, string>GetAssociationExtensionPluralName=GetAssociationExtensionPluralNameDefault; // Gets plural method extension method name for association
0 commit comments