From d921ea06e5e168ce35d93e1e40cf17cf6088faa5 Mon Sep 17 00:00:00 2001 From: msawczyn Date: Thu, 30 Mar 2023 14:24:15 -0400 Subject: [PATCH] v2.4.3 initial release --- README.md | 3 +- VSMarketplace blurb.md | 1 + changelog.txt | 1 + ...Sawczyn.EFDesigner.EFModel.DslPackage.vsix | 4 +- reload.cmd | 4 +- .../CustomCode/Rules/ModelRootChangeRules.cs | 39 +- .../CodeStrategyTypeConverter.cs | 2 +- src/Dsl/Dsl.csproj | 1 + src/Dsl/GeneratedCode/DomainClasses.cs | 8 +- src/Dsl/GeneratedCode/DomainRelationships.cs | 6 +- .../DesignerExtensionMetaDataAttribute.cs | 2 +- src/DslPackage/DslPackage.csproj | 15 +- .../EFCore5ModelGenerator.ttinclude | 23 +- .../EFModelFileManager.ttinclude | 20 +- .../EditingOnly/EFCore5ModelGenerator.cs | 23 +- .../Custom/Context/Context.cs | 6 +- .../Sandbox_EFCore5Net5_Test/EFModel1.efmodel | 563 +------- .../EFModel1.efmodel.diagramx | 505 +------ .../Sandbox_EFCore5Net5_Test/EFModel1.tt | 1 - .../Context/CreditContext.generated.cs | 1221 ----------------- .../Generated/Context/EFModel1.generated.cs | 96 ++ ...erated.cs => EFModel1Factory.generated.cs} | 34 +- .../Entities/AddressInformations.generated.cs | 233 ---- .../Entities/Attributes.generated.cs | 121 -- .../Generated/Entities/BaseType.generated.cs | 54 + ...erAssistanceReferralAddresses.generated.cs | 136 -- .../Entities/ConsumerIdentities.generated.cs | 117 -- .../Entities/CreditProfiles.generated.cs | 232 ---- .../Entities/CreditReportInfo.generated.cs | 205 --- .../Entities/DirectChecks.generated.cs | 156 --- .../Generated/Entities/Dobs.generated.cs | 120 -- .../EmploymentInformations.generated.cs | 163 --- .../EnhancedPaymentDatas.generated.cs | 283 ---- .../Generated/Entities/Entity1.generated.cs | 47 + .../Generated/Entities/Entity2.generated.cs | 47 + .../FraudShieldIndicators.generated.cs | 106 -- .../Entities/FraudShields.generated.cs | 209 --- .../InformationalMessages.generated.cs | 128 -- .../Generated/Entities/Inquiries.generated.cs | 156 --- .../Generated/Entities/Items.generated.cs | 114 -- .../Generated/Entities/Mlas.generated.cs | 113 -- .../Entities/ModelAttribute.generated.cs | 111 -- .../Entities/ModelAttributes.generated.cs | 135 -- .../Generated/Entities/Names.generated.cs | 149 -- .../Generated/Entities/Ofacs.generated.cs | 113 -- .../Generated/Entities/Phones.generated.cs | 128 -- .../Entities/PublicRecords.generated.cs | 219 --- .../Entities/RiskModels.generated.cs | 140 -- .../Entities/ScoreFactors.generated.cs | 121 -- .../Generated/Entities/Ssns.generated.cs | 128 -- .../Entities/Statements.generated.cs | 128 -- .../Generated/Entities/Summaries.generated.cs | 119 -- .../Entities/TrendedTradeLines.generated.cs | 389 ------ .../Entities/TrendedTrades.generated.cs | 149 -- .../UniqueConsumerIdentifiers.generated.cs | 113 -- .../20230330175006_Initial.Designer.cs | 83 ++ .../Migrations/20230330175006_Initial.cs | 86 ++ .../Migrations/EFModel1ModelSnapshot.cs | 80 ++ ...Test.csproj => Sandbox_EFCore_Test.csproj} | 28 +- src/Testing/Testing.sln | 2 +- 60 files changed, 659 insertions(+), 7080 deletions(-) delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContext.generated.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1.generated.cs rename src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/{CreditContextFactory.generated.cs => EFModel1Factory.generated.cs} (73%) delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/AddressInformations.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Attributes.generated.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/BaseType.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerAssistanceReferralAddresses.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerIdentities.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditProfiles.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditReportInfo.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/DirectChecks.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Dobs.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EmploymentInformations.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EnhancedPaymentDatas.generated.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity1.generated.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity2.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShieldIndicators.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShields.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/InformationalMessages.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Inquiries.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Items.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Mlas.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttribute.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttributes.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Names.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ofacs.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Phones.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/PublicRecords.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/RiskModels.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ScoreFactors.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ssns.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Statements.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Summaries.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTradeLines.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTrades.generated.cs delete mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/UniqueConsumerIdentifiers.generated.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.Designer.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.cs create mode 100644 src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/EFModel1ModelSnapshot.cs rename src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/{Sandbox_EFCore5Net5_Test.csproj => Sandbox_EFCore_Test.csproj} (81%) diff --git a/README.md b/README.md index d2bd752..deee358 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ to ().Where(c => c.IsPropertyBag).ToList().ForEach(c => c.IsPropertyBag = false); - } } + break; case "EntityFrameworkVersion": @@ -78,14 +79,16 @@ public override void ElementPropertyChanged(ElementPropertyChangedEventArgs e) { case EFVersion.EFCore: { - if (element.IsEFCore5Plus) - { - if (element.InheritanceStrategy == CodeStrategy.TablePerConcreteType) - element.InheritanceStrategy = CodeStrategy.TablePerType; - } - else - { + // if we're not going to at least EFCore 5 we can only use the TablePerHierarchy strategy + if (!element.IsEFCore5Plus && element.InheritanceStrategy != CodeStrategy.TablePerHierarchy) element.InheritanceStrategy = CodeStrategy.TablePerHierarchy; + + // if we're not going to at least EFCore 7 we can't use the TablePerConcreteType strategy. Devolve to TablePerType. + else if (!element.IsEFCore7Plus && element.InheritanceStrategy == CodeStrategy.TablePerConcreteType) + element.InheritanceStrategy = CodeStrategy.TablePerType; + + if (!element.IsEFCore5Plus) + { store.ElementDirectory.AllElements.OfType().Where(c => c.IsPropertyBag).ToList().ForEach(c => c.IsPropertyBag = false); switch (element.PropertyAccessModeDefault) @@ -194,11 +197,11 @@ public override void ElementPropertyChanged(ElementPropertyChangedEventArgs e) if (element.EntityFrameworkVersion == EFVersion.EFCore) { - if (element.IsEFCore5Plus && (element.InheritanceStrategy == CodeStrategy.TablePerConcreteType)) - element.InheritanceStrategy = CodeStrategy.TablePerType; - if (!element.IsEFCore5Plus) element.InheritanceStrategy = CodeStrategy.TablePerHierarchy; + + if (!element.IsEFCore7Plus && element.InheritanceStrategy == CodeStrategy.TablePerConcreteType) + element.InheritanceStrategy = CodeStrategy.TablePerType; } break; diff --git a/src/Dsl/CustomCode/Type Converters/CodeStrategyTypeConverter.cs b/src/Dsl/CustomCode/Type Converters/CodeStrategyTypeConverter.cs index ae561b5..82e75e8 100644 --- a/src/Dsl/CustomCode/Type Converters/CodeStrategyTypeConverter.cs +++ b/src/Dsl/CustomCode/Type Converters/CodeStrategyTypeConverter.cs @@ -84,7 +84,7 @@ public override StandardValuesCollection GetStandardValues(ITypeDescriptorContex ModelRoot modelRoot = store.ModelRoot(); // Value set changes at EFCore5 - if (modelRoot.EntityFrameworkVersion == EFVersion.EF6) + if (modelRoot.IsEFCore6Plus) { values.AddRange(new[] {"TablePerConcreteType", "TablePerHierarchy", "TablePerType"}); } diff --git a/src/Dsl/Dsl.csproj b/src/Dsl/Dsl.csproj index 49b2519..eaf8241 100644 --- a/src/Dsl/Dsl.csproj +++ b/src/Dsl/Dsl.csproj @@ -43,6 +43,7 @@ prompt 4 bin\Release\Sawczyn.EFDesigner.EFModel.Dsl.xml + CS3001,VSTHRD010,CS3009;MSB3277 diff --git a/src/Dsl/GeneratedCode/DomainClasses.cs b/src/Dsl/GeneratedCode/DomainClasses.cs index 8a1e2bc..caa8f11 100644 --- a/src/Dsl/GeneratedCode/DomainClasses.cs +++ b/src/Dsl/GeneratedCode/DomainClasses.cs @@ -1583,7 +1583,7 @@ public override sealed void SetValue(ModelRoot element, CodeStrategy newValue) /// /// Gets or sets the value of DefaultCollectionClass domain property. /// The type of container generated to represent associations if not overridden. - /// Must implement ICollection. + /// Must implement ICollection[[T]]. /// [System.ComponentModel.TypeConverter(typeof(CollectionTypeTypeConverter))] [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.ModelRoot/DefaultCollectionClass.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] @@ -6936,7 +6936,7 @@ public override sealed void SetValue(ModelClass element, global::System.Boolean /// /// Gets or sets the value of IsPropertyBag domain property. - /// If true, this class will be implemented as Dictionary + /// If true, this class will be implemented as Dictionary[[string, object]] /// [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.ModelClass/IsPropertyBag.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] [DslDesign::CategoryResource("Sawczyn.EFDesigner.EFModel.ModelClass/IsPropertyBag.Category", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] @@ -10798,7 +10798,7 @@ public override sealed void SetValue(ModelAttribute element, global::System.Stri /// /// Gets or sets the value of DisplayText domain property. - /// Text for [Display(Name="")] attribute + /// Text for [Display(Name="text")] attribute /// [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.ModelAttribute/DisplayText.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] [DslDesign::CategoryResource("Sawczyn.EFDesigner.EFModel.ModelAttribute/DisplayText.Category", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] @@ -14183,7 +14183,7 @@ public override sealed void SetValue(ModelEnumValue element, global::System.Stri /// /// Gets or sets the value of DisplayText domain property. - /// Text for [Display(Name="")] attribute + /// Text for [Display(Name="text")] attribute /// [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.ModelEnumValue/DisplayText.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] [DslDesign::CategoryResource("Sawczyn.EFDesigner.EFModel.ModelEnumValue/DisplayText.Category", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] diff --git a/src/Dsl/GeneratedCode/DomainRelationships.cs b/src/Dsl/GeneratedCode/DomainRelationships.cs index e23c019..8292920 100644 --- a/src/Dsl/GeneratedCode/DomainRelationships.cs +++ b/src/Dsl/GeneratedCode/DomainRelationships.cs @@ -786,7 +786,7 @@ public override sealed void SetValue(Association element, DeleteAction newValue) /// /// Gets or sets the value of CollectionClass domain property. - /// Class used to instanciate association properties. Implements ICollection<> + /// Class used to instanciate association properties. Implements ICollection[[]] /// [System.ComponentModel.TypeConverter(typeof(CollectionTypeTypeConverter))] [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.Association/CollectionClass.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] @@ -1599,7 +1599,7 @@ public override sealed void SetValue(Association element, global::System.String /// /// Gets or sets the value of TargetDisplayText domain property. - /// Text for [Display(Name="")] attribute on this end's property + /// Text for [Display(Name="text")] attribute on this end's property /// [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.Association/TargetDisplayText.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] [DslDesign::CategoryResource("Sawczyn.EFDesigner.EFModel.Association/TargetDisplayText.Category", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] @@ -4334,7 +4334,7 @@ public override sealed void SetValue(BidirectionalAssociation element, global::S /// /// Gets or sets the value of SourceDisplayText domain property. - /// Text for [Display(Name="")] attribute on this end's property + /// Text for [Display(Name="text")] attribute on this end's property /// [DslDesign::DisplayNameResource("Sawczyn.EFDesigner.EFModel.BidirectionalAssociation/SourceDisplayText.DisplayName", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] [DslDesign::CategoryResource("Sawczyn.EFDesigner.EFModel.BidirectionalAssociation/SourceDisplayText.Category", typeof(global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel), "Sawczyn.EFDesigner.EFModel.GeneratedCode.DomainModelResx")] diff --git a/src/Dsl/MefExtension/DesignerExtensionMetaDataAttribute.cs b/src/Dsl/MefExtension/DesignerExtensionMetaDataAttribute.cs index e279cd1..62e7489 100644 --- a/src/Dsl/MefExtension/DesignerExtensionMetaDataAttribute.cs +++ b/src/Dsl/MefExtension/DesignerExtensionMetaDataAttribute.cs @@ -86,7 +86,7 @@ public object EFModelExtensionFilter /// Provides a strongly typed custom attribute which allows user to use the following: /// [EFModelValidationExtension] /// in lieu of - /// [Export(typeof(typeof(Action))] + /// [Export(typeof(typeof(Action[[ValidationContext, object]]))] /// [ExportMetadata("EFModelExtensionFilter", null)] /// /// Use this attribute to Export a ValidationExtension MEF part for EFModel designer. diff --git a/src/DslPackage/DslPackage.csproj b/src/DslPackage/DslPackage.csproj index 5c2ebc3..b9fd210 100644 --- a/src/DslPackage/DslPackage.csproj +++ b/src/DslPackage/DslPackage.csproj @@ -48,6 +48,8 @@ TRACE prompt 4 + CS1762,VSTHRD010,VSTHRD001;MSB3277 + bin\Release\Sawczyn.EFDesigner.EFModel.DslPackage.xml @@ -286,18 +288,6 @@ true - - - - - - - - - - - - Always @@ -396,7 +386,6 @@ true - diff --git a/src/DslPackage/TextTemplates/EFCore5ModelGenerator.ttinclude b/src/DslPackage/TextTemplates/EFCore5ModelGenerator.ttinclude index 373961f..a84b504 100644 --- a/src/DslPackage/TextTemplates/EFCore5ModelGenerator.ttinclude +++ b/src/DslPackage/TextTemplates/EFCore5ModelGenerator.ttinclude @@ -158,18 +158,21 @@ : $"ToTable(\"{tableName}\"{schema}{buildActions})"); if (modelClass.Superclass != null) + { segments.Add($"HasBaseType<{modelClass.Superclass.FullName}>()"); + } + else // if there's a base class, we can't have new identifiers + { + // primary key code segments must be output last, since HasKey returns a different type + List allIdentityAttributes = modelClass.AllIdentityAttributes.ToList(); - // primary key code segments must be output last, since HasKey returns a different type - List identityAttributes = modelClass.IdentityAttributes.ToList(); - - if (identityAttributes.Count == 1) - segments.Add($"HasKey(t => t.{identityAttributes[0].Name})"); - else if (identityAttributes.Count > 1) - segments.Add($"HasKey(t => new {{ t.{string.Join(", t.", identityAttributes.Select(ia => ia.Name))} }})"); - else - segments.Add("HasNoKey()"); - } + if (allIdentityAttributes.Count == 1) + segments.Add($"HasKey(t => t.{allIdentityAttributes[0].Name})"); + else if (allIdentityAttributes.Count > 1) + segments.Add($"HasKey(t => new {{ t.{string.Join(", t.", allIdentityAttributes.Select(ia => ia.Name))} }})"); + else + segments.Add("HasNoKey()"); + } } [SuppressMessage("ReSharper", "RedundantNameQualifier")] protected override void ConfigureUnidirectionalAssociations(ModelClass modelClass, List visited, List foreignKeyColumns, List declaredShadowProperties) diff --git a/src/DslPackage/TextTemplates/EFModelFileManager.ttinclude b/src/DslPackage/TextTemplates/EFModelFileManager.ttinclude index a403a3d..6f77173 100644 --- a/src/DslPackage/TextTemplates/EFModelFileManager.ttinclude +++ b/src/DslPackage/TextTemplates/EFModelFileManager.ttinclude @@ -342,8 +342,26 @@ ProjectSync(generatedFileNames); } + private bool ShouldDelete(string[] targetFileNames, string fileName) + { + Dictionary directories = new Dictionary(); + + foreach (string targetFilename in targetFileNames) + { + string directory = Path.GetDirectoryName(targetFilename); + if (directory != null) + { + if (!directories.ContainsKey(directory)) + directories.Add(directory, targetFilename); + } + } + return directories.ContainsKey(Path.GetDirectoryName(fileName)); + } + private void ProjectSync(IEnumerable keepFileNames) { + // thanks to Sancho-Lee (https://github.com/Sancho-Lee) for the fix here + Dictionary> current = GetCurrentState(); string[] fileNames = keepFileNames as string[] ?? keepFileNames.ToArray(); @@ -356,7 +374,7 @@ { foreach (string filename in current[parentItem]) { - if (!allTargetFiles.Contains(filename) && !fileNames.Contains(filename)) + if (!allTargetFiles.Contains(filename) && ShouldDelete(fileNames, filename)) dte.Solution.FindProjectItem(filename)?.Delete(); else existingFiles.Add(filename); diff --git a/src/DslPackage/TextTemplates/EditingOnly/EFCore5ModelGenerator.cs b/src/DslPackage/TextTemplates/EditingOnly/EFCore5ModelGenerator.cs index b6f5ede..c6e0eca 100644 --- a/src/DslPackage/TextTemplates/EditingOnly/EFCore5ModelGenerator.cs +++ b/src/DslPackage/TextTemplates/EditingOnly/EFCore5ModelGenerator.cs @@ -149,18 +149,21 @@ protected override void ConfigureTable(List segments, ModelClass modelCl : $"ToTable(\"{tableName}\"{schema}{buildActions})"); if (modelClass.Superclass != null) + { segments.Add($"HasBaseType<{modelClass.Superclass.FullName}>()"); + } + else // if there's a base class, we can't have new identifiers + { + // primary key code segments must be output last, since HasKey returns a different type + List allIdentityAttributes = modelClass.AllIdentityAttributes.ToList(); - // primary key code segments must be output last, since HasKey returns a different type - List identityAttributes = modelClass.IdentityAttributes.ToList(); - - if (identityAttributes.Count == 1) - segments.Add($"HasKey(t => t.{identityAttributes[0].Name})"); - else if (identityAttributes.Count > 1) - segments.Add($"HasKey(t => new {{ t.{string.Join(", t.", identityAttributes.Select(ia => ia.Name))} }})"); - else - segments.Add("HasNoKey()"); - } + if (allIdentityAttributes.Count == 1) + segments.Add($"HasKey(t => t.{allIdentityAttributes[0].Name})"); + else if (allIdentityAttributes.Count > 1) + segments.Add($"HasKey(t => new {{ t.{string.Join(", t.", allIdentityAttributes.Select(ia => ia.Name))} }})"); + else + segments.Add("HasNoKey()"); + } } [SuppressMessage("ReSharper", "RedundantNameQualifier")] protected override void ConfigureUnidirectionalAssociations(ModelClass modelClass, List visited, List foreignKeyColumns, List declaredShadowProperties) diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Custom/Context/Context.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Custom/Context/Context.cs index 0fa7e5a..97f66eb 100644 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Custom/Context/Context.cs +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Custom/Context/Context.cs @@ -4,12 +4,12 @@ using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; -namespace Credit.API.Domain_RE.Models_RE +namespace Sandbox_EFCore_Test { /// - partial class CreditContext + partial class EFModel1 { - public CreditContext() : base(Options) + public EFModel1() : base(Options) { //System.Diagnostics.Debugger.Launch(); } diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel index 2b62d01..07c9a63 100644 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel @@ -1,563 +1,38 @@  - + - - + + - - - - - - - - - - - - - - - - - - - - + - - - - - + + + + + + + + - - + + - - - - + - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel.diagramx b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel.diagramx index 3bc2ed8..d2e13e7 100644 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel.diagramx +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.efmodel.diagramx @@ -1,502 +1,49 @@ - + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - + diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.tt b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.tt index eb973e5..e7b814b 100644 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.tt +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/EFModel1.tt @@ -67,7 +67,6 @@ throw new InvalidOperationException("Unsupported Entity Framework version"); } - System.Diagnostics.Debugger.Launch(); generator.Generate(manager); } diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContext.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContext.generated.cs deleted file mode 100644 index 14daf09..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContext.generated.cs +++ /dev/null @@ -1,1221 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel.DataAnnotations.Schema; -using Microsoft.EntityFrameworkCore; - -namespace Credit.API.Domain_RE.Models_RE -{ - /// - public partial class CreditContext : DbContext - { - #region DbSets - public virtual Microsoft.EntityFrameworkCore.DbSet AddressInformations { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Attributes { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet ConsumerAssistanceReferralAddresses { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet ConsumerIdentities { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet CreditProfiles { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet CreditReportInfoes { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet DirectChecks { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Dobs { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet EmploymentInformations { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet EnhancedPaymentDatas { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet FraudShieldIndicators { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet FraudShields { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet InformationalMessages { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Inquiries { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Items { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Mlas { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet ModelAttributes { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet ModelAttributesSet { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Names { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Ofacs { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Phones { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet PublicRecords { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet RiskModels { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet ScoreFactors { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Ssns { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Statements { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet Summaries { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet TrendedTradeLines { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet TrendedTrades { get; set; } - public virtual Microsoft.EntityFrameworkCore.DbSet UniqueConsumerIdentifiers { get; set; } - - #endregion DbSets - - /// - /// Default connection string - /// - public static string ConnectionString { get; set; } = @"Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=Testing;Integrated Security=True"; - - /// - /// - /// Initializes a new instance of the class using the specified options. - /// The method will still be called to allow further - /// configuration of the options. - /// - /// - /// The options for this context. - public CreditContext(DbContextOptions options) : base(options) - { - } - - partial void CustomInit(DbContextOptionsBuilder optionsBuilder); - - partial void OnModelCreatingImpl(ModelBuilder modelBuilder); - partial void OnModelCreatedImpl(ModelBuilder modelBuilder); - - /// - /// Override this method to further configure the model that was discovered by convention from the entity types - /// exposed in properties on your derived context. The resulting model may be cached - /// and re-used for subsequent instances of your derived context. - /// - /// - /// If a model is explicitly set on the options for this context (via ) - /// then this method will not be run. - /// - /// - /// The builder being used to construct the model for this context. Databases (and other extensions) typically - /// define extension methods on this object that allow you to configure aspects of the model that are specific - /// to a given database. - /// - protected override void OnModelCreating(ModelBuilder modelBuilder) - { - base.OnModelCreating(modelBuilder); - OnModelCreatingImpl(modelBuilder); - - modelBuilder.HasDefaultSchema("dbo"); - - modelBuilder.Entity() - .ToTable("AddressInformations") - .HasKey(t => t.AddressInformationId); - modelBuilder.Entity() - .Property(t => t.AddressInformationId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CensusGeoCode) - .HasMaxLength(15); - modelBuilder.Entity() - .Property(t => t.City) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.CountyCode) - .HasMaxLength(15); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.DwellingType) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.FirstReportedDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.LastReportingSubscriberCode) - .HasMaxLength(15); - modelBuilder.Entity() - .Property(t => t.LastUpdatedDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.MsaCode) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.Source) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.State) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.StateCode) - .HasMaxLength(25); - modelBuilder.Entity() - .Property(t => t.StreetName) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.StreetPrefix) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.StreetSuffix) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.TimesReported) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.UnitId) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.UnitType) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Zipcode) - .HasMaxLength(12); - modelBuilder.Entity() - .HasOne(p => p.CreditProfile) - .WithMany(p => p.AddressInformations); - - modelBuilder.Entity() - .ToTable("Attributes") - .HasKey(t => t.AttributesId); - modelBuilder.Entity() - .Property(t => t.AttributesId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.Id) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.SummariesId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.SummariesId); - modelBuilder.Entity() - .Property(t => t.Value) - .HasMaxLength(100); - modelBuilder.Entity() - .HasOne(p => p.Summaries) - .WithMany(p => p.Attributes); - - modelBuilder.Entity() - .ToTable("ConsumerAssistanceReferralAddresses") - .HasKey(t => t.ConsumerAssistanceReferralAddressId); - modelBuilder.Entity() - .Property(t => t.ConsumerAssistanceReferralAddressId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CityStateZip) - .HasMaxLength(500); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.OfficeName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.Phone) - .HasMaxLength(20); - modelBuilder.Entity() - .Property(t => t.Pobox) - .HasMaxLength(25); - modelBuilder.Entity() - .Property(t => t.StreetName) - .HasMaxLength(100); - modelBuilder.Entity() - .HasOne(p => p.CreditProfile) - .WithOne(p => p.ConsumerAssistanceReferralAddresses) - .HasForeignKey(k => k.CreditProfileId); - - modelBuilder.Entity() - .ToTable("ConsumerIdentities") - .HasKey(t => t.ConsumerIdentityId); - modelBuilder.Entity() - .Property(t => t.ConsumerIdentityId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .HasOne(p => p.CreditProfile) - .WithOne(p => p.ConsumerIdentities) - .HasForeignKey(k => k.CreditProfileId); - modelBuilder.Entity() - .HasOne(p => p.Dobs) - .WithOne(p => p.ConsumerIdentity) - .HasForeignKey(k => k.ConsumerIdentityId); - modelBuilder.Entity() - .HasMany(p => p.Names) - .WithOne(p => p.ConsumerIdentity) - .HasForeignKey(k => k.ConsumerIdentityId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.Phones) - .WithOne(p => p.ConsumerIdentity) - .HasForeignKey(k => k.ConsumerIdentityId) - .IsRequired(); - - modelBuilder.Entity() - .ToTable("CreditProfiles") - .HasKey(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreatedBy) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.CreatedOn) - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.FirstNameUsedToCreateRecord) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.LastAccessedBy) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.LastAccessedOn) - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.LastNameUsedToCreateRecord) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.LastPulledOn) - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.SsnUsedToCreateRecord) - .HasMaxLength(9); - modelBuilder.Entity() - .HasMany(p => p.DirectChecks) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.EmploymentInformations) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.FraudShields) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.InformationalMessages) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.Inquiries) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasOne(p => p.Mlas) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId); - modelBuilder.Entity() - .HasOne(p => p.ModelAttribute) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId); - modelBuilder.Entity() - .HasOne(p => p.Ofacs) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId); - modelBuilder.Entity() - .HasMany(p => p.PublicRecords) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.RiskModels) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.Ssns) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.Statements) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.Summaries) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasMany(p => p.TrendedTradeLines) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .HasOne(p => p.UniqueConsumerIdentifiers) - .WithOne(p => p.CreditProfile) - .HasForeignKey(k => k.CreditProfileId); - - modelBuilder.Entity() - .ToView("credit_report_info") - .HasNoKey(); - modelBuilder.Entity() - .Property(t => t.AccountType) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.AcctNumber) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.Amount1) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BalanceAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BalanceDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.Day) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Ecoa) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.FirstNameUsedToCreateRecord) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.LastNameUsedToCreateRecord) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.LastPaymentDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Month) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.MonthlyPaymentAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.OpenDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.OpenOrClosed) - .HasMaxLength(1); - modelBuilder.Entity() - .Property(t => t.Score) - .HasMaxLength(6); - modelBuilder.Entity() - .Property(t => t.Status) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.SubscriberName) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.Year) - .HasMaxLength(4); - - modelBuilder.Entity() - .ToTable("DirectChecks") - .HasKey(t => t.DirectCheckId); - modelBuilder.Entity() - .Property(t => t.DirectCheckId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.SubscriberAddress) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.SubscriberCity) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.SubscriberCode) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.SubscriberName) - .HasMaxLength(250); - modelBuilder.Entity() - .Property(t => t.SubscriberPhone) - .HasMaxLength(15); - modelBuilder.Entity() - .Property(t => t.SubscriberState) - .HasMaxLength(25); - modelBuilder.Entity() - .Property(t => t.SubscriberZipCode) - .HasMaxLength(15); - - modelBuilder.Entity() - .ToTable("Dobs") - .HasKey(t => t.DobId); - modelBuilder.Entity() - .Property(t => t.DobId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.ConsumerIdentityId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.ConsumerIdentityId); - modelBuilder.Entity() - .Property(t => t.Day) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Month) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Year) - .HasMaxLength(4); - - modelBuilder.Entity() - .ToTable("EmploymentInformations") - .HasKey(t => t.EmploymentInformationId); - modelBuilder.Entity() - .Property(t => t.EmploymentInformationId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.AddressExtraLine) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.AddressFirstLine) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.AddressSecondLine) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.FirstReportedDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.LastUpdatedDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.Name) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.Source) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.Zipcode) - .HasMaxLength(15); - - modelBuilder.Entity() - .ToTable("EnhancedPaymentDatas") - .HasKey(t => t.EnhancedPaymentDataId); - modelBuilder.Entity() - .Property(t => t.EnhancedPaymentDataId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.ActualPaymentAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.ChargeOffAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.CiiCode) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.ComplianceCondition) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.CreditLimitAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.EnhancedAccountCondition) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.EnhancedAccountType) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.EnhancedPaymentHistory84) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.EnhancedPaymentStatus) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.EnhancedSpecialComment) - .HasMaxLength(500); - modelBuilder.Entity() - .Property(t => t.EnhancedTerms) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.EnhancedTermsFrequency) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.FirstDelinquencyDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.HighBalanceAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.MaxDelinquencyCode) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.MortgageId) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.OriginalCreditorClassificationCode) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.OriginalLoanAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.PaymentLevelDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.PurchasedPortfolioFromName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.SecondDelinquencyDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.SecondaryAgencyCode) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.SecondaryAgencyId) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.SpecialPaymentAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.SpecialPaymentCode) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.SpecialPaymentDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.TrendedTradeLineId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.TrendedTradeLineId); - modelBuilder.Entity() - .HasOne(p => p.TrendedTradeLine) - .WithOne(p => p.EnhancedPaymentDatas) - .HasForeignKey(k => k.TrendedTradeLineId); - - modelBuilder.Entity() - .ToTable("FraudShieldIndicators") - .HasKey(t => t.FraudShieldIndicatorsId); - modelBuilder.Entity() - .Property(t => t.FraudShieldIndicatorsId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.FraudShieldId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.FraudShieldId); - modelBuilder.Entity() - .HasOne(p => p.FraudShield) - .WithOne(p => p.FraudShieldIndicators) - .HasForeignKey(k => k.FraudShieldId); - modelBuilder.Entity() - .HasMany(p => p.Items) - .WithOne(p => p.FraudShieldIndicators) - .HasForeignKey(k => k.FraudShieldIndicatorsId) - .IsRequired(); - - modelBuilder.Entity() - .ToTable("FraudShields") - .HasKey(t => t.FraudShieldId); - modelBuilder.Entity() - .Property(t => t.FraudShieldId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.AddressCount) - .HasMaxLength(6); - modelBuilder.Entity() - .Property(t => t.AddressDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.AddressErrorCode) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.DateOfBirth) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.DateOfDeath) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.Sic) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.SocialCount) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.SocialDate) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.SocialErrorCode) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.SsnFirstPossibleIssuanceYear) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.SsnLastPossibleIssuanceYear) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.Text) - .HasMaxLength(150); - modelBuilder.Entity() - .Property(t => t.Type) - .HasMaxLength(4); - - modelBuilder.Entity() - .ToTable("InformationalMessages") - .HasKey(t => t.InformationalMessageId); - modelBuilder.Entity() - .Property(t => t.InformationalMessageId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.MessageNumber) - .HasMaxLength(6); - modelBuilder.Entity() - .Property(t => t.MessageNumberDetailed) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.MessageText) - .HasMaxLength(100); - - modelBuilder.Entity() - .ToTable("Inquiries") - .HasKey(t => t.InquiryId); - modelBuilder.Entity() - .Property(t => t.InquiryId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.Amount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.Date) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.Kob) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.SubscriberCode) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.SubscriberName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.Terms) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.Type) - .HasMaxLength(5); - - modelBuilder.Entity() - .ToTable("Items") - .HasKey(t => t.ItemId); - modelBuilder.Entity() - .Property(t => t.ItemId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.FraudShieldIndicatorsId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.FraudShieldIndicatorsId); - modelBuilder.Entity() - .Property(t => t.Items1) - .HasMaxLength(500); - - modelBuilder.Entity() - .ToTable("Mlas") - .HasKey(t => t.MlaId); - modelBuilder.Entity() - .Property(t => t.MlaId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.MessageNumber) - .HasMaxLength(6); - modelBuilder.Entity() - .Property(t => t.MessageText) - .HasMaxLength(100); - - modelBuilder.Entity() - .ToTable("ModelAttribute") - .HasKey(t => t.ModelAttributeId); - modelBuilder.Entity() - .Property(t => t.ModelAttributeId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.Message) - .HasMaxLength(500); - modelBuilder.Entity() - .HasMany(p => p.ModelAttributes) - .WithOne(p => p.ModelAttribute) - .HasForeignKey(k => k.ModelAttributeId) - .IsRequired(); - - modelBuilder.Entity() - .ToTable("ModelAttributes") - .HasKey(t => t.ModelAttributesId); - modelBuilder.Entity() - .Property(t => t.ModelAttributesId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.AttributeValue) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.ModelAttributeId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.ModelAttributeId); - modelBuilder.Entity() - .Property(t => t.ModelTypeIndicator) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.SignOfAttribute) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.VariableName) - .HasMaxLength(100); - - modelBuilder.Entity() - .ToTable("Names") - .HasKey(t => t.NameId); - modelBuilder.Entity() - .Property(t => t.NameId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.ConsumerIdentityId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.ConsumerIdentityId); - modelBuilder.Entity() - .Property(t => t.FirstName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.GenerationCode) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.MiddleName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.SecondSurname) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.Surname) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.Type) - .HasMaxLength(10); - - modelBuilder.Entity() - .ToTable("Ofacs") - .HasKey(t => t.OfacId); - modelBuilder.Entity() - .Property(t => t.OfacId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.MessageNumber) - .HasMaxLength(6); - modelBuilder.Entity() - .Property(t => t.MessageText) - .HasMaxLength(100); - - modelBuilder.Entity() - .ToTable("Phones") - .HasKey(t => t.PhoneId); - modelBuilder.Entity() - .Property(t => t.PhoneId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.ConsumerIdentityId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.ConsumerIdentityId); - modelBuilder.Entity() - .Property(t => t.Number) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Source) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.Type) - .HasMaxLength(50); - - modelBuilder.Entity() - .ToTable("PublicRecords") - .HasKey(t => t.PublicRecordId); - modelBuilder.Entity() - .Property(t => t.PublicRecordId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.AdjustmentPercent) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.Amount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BankruptcyVoluntaryIndicator) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BookPageSequence) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.ConsumerComment) - .HasMaxLength(500); - modelBuilder.Entity() - .Property(t => t.CourtCode) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.CourtName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.DisputeFlag) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Ecoa) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Evaluation) - .HasMaxLength(5); - modelBuilder.Entity() - .Property(t => t.FilingDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.PlaintiffName) - .HasMaxLength(250); - modelBuilder.Entity() - .Property(t => t.ReferenceNumber) - .HasMaxLength(30); - modelBuilder.Entity() - .Property(t => t.RepaymentPercent) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.Status) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.StatusDate) - .HasMaxLength(10); - - modelBuilder.Entity() - .ToTable("RiskModels") - .HasKey(t => t.RiskModelId); - modelBuilder.Entity() - .Property(t => t.RiskModelId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.Evaluation) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.ModelIndicator) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.Score) - .HasMaxLength(6); - modelBuilder.Entity() - .Property(t => t.ScorePercentile) - .HasMaxLength(3); - modelBuilder.Entity() - .HasMany(p => p.ScoreFactors) - .WithOne(p => p.RiskModel) - .HasForeignKey(k => k.RiskModelId) - .IsRequired(); - - modelBuilder.Entity() - .ToTable("ScoreFactors") - .HasKey(t => t.ScoreFactorsId); - modelBuilder.Entity() - .Property(t => t.ScoreFactorsId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.Code) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.Importance) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.RiskModelId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.RiskModelId); - - modelBuilder.Entity() - .ToTable("Ssns") - .HasKey(t => t.SsnId); - modelBuilder.Entity() - .Property(t => t.SsnId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.Number) - .HasMaxLength(9); - modelBuilder.Entity() - .Property(t => t.SsnIndicators) - .HasMaxLength(12); - modelBuilder.Entity() - .Property(t => t.VariationIndicator) - .HasMaxLength(5); - - modelBuilder.Entity() - .ToTable("Statements") - .HasKey(t => t.StatementId); - modelBuilder.Entity() - .Property(t => t.StatementId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.DateReported) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.StatementText) - .HasMaxLength(500); - modelBuilder.Entity() - .Property(t => t.Type) - .HasMaxLength(4); - - modelBuilder.Entity() - .ToTable("Summaries") - .HasKey(t => t.SummariesId); - modelBuilder.Entity() - .Property(t => t.SummariesId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.SummaryType) - .HasMaxLength(50); - - modelBuilder.Entity() - .ToTable("TrendedTradeLines") - .HasKey(t => t.TrendedTradeLineId); - modelBuilder.Entity() - .Property(t => t.TrendedTradeLineId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.AccountNumber) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.AccountType) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.Amount1) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Amount1Qualifier) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Amount2) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Amount2Qualifier) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.AmountBalloonPayment) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.AmountPastDue) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BalanceAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BalanceDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BankruptcyChapterNumber) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.ConsumerComment) - .HasMaxLength(500); - modelBuilder.Entity() - .Property(t => t.ConsumerDisputeFlag) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.DatePaymentDue) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.Delinquencies30Days) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Delinquencies60Days) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Delinquencies90To180Days) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.DerogCounter) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Ecoa) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Evaluation) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.Kob) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.LastPaymentDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.MaxDelinquencyDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.MonthlyPaymentAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.MonthlyPaymentType) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.MonthsHistory) - .HasMaxLength(4); - modelBuilder.Entity() - .Property(t => t.OpenDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.OpenOrClosed) - .HasMaxLength(1); - modelBuilder.Entity() - .Property(t => t.OriginalCreditorName) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.PaymentHistory) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.RevolvingOrInstallment) - .HasMaxLength(1); - modelBuilder.Entity() - .Property(t => t.SoldToName) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.SpecialComment) - .HasMaxLength(500); - modelBuilder.Entity() - .Property(t => t.Status) - .HasMaxLength(3); - modelBuilder.Entity() - .Property(t => t.StatusDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.SubscriberCode) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.SubscriberName) - .HasMaxLength(50); - modelBuilder.Entity() - .Property(t => t.Terms) - .HasMaxLength(5); - modelBuilder.Entity() - .HasMany(p => p.TrendedTrades) - .WithOne(p => p.TrendedTradeLine) - .HasForeignKey(k => k.TrendedTradeLineId) - .IsRequired(); - - modelBuilder.Entity() - .ToTable("TrendedTrades") - .HasKey(t => t.TrendedTradesId); - modelBuilder.Entity() - .Property(t => t.TrendedTradesId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.ActualPaymentAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.BalanceAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.LastPaymentDate) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.MonthNumber) - .HasMaxLength(2); - modelBuilder.Entity() - .Property(t => t.OriginalLoanAmountOrLimit) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.ScheduledPaymentAmount) - .HasMaxLength(10); - modelBuilder.Entity() - .Property(t => t.TrendedTradeLineId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.TrendedTradeLineId); - - modelBuilder.Entity() - .ToTable("UniqueConsumerIdentifiers") - .HasKey(t => t.UniqueConsumerIdentifierId); - modelBuilder.Entity() - .Property(t => t.UniqueConsumerIdentifierId) - .ValueGeneratedNever() - .IsRequired(); - modelBuilder.Entity() - .Property(t => t.CreditProfileId) - .IsRequired(); - modelBuilder.Entity().HasIndex(t => t.CreditProfileId); - modelBuilder.Entity() - .Property(t => t.Value) - .HasMaxLength(100); - modelBuilder.Entity() - .Property(t => t.VerificationIndicator) - .HasMaxLength(100); - - OnModelCreatedImpl(modelBuilder); - } - } -} diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1.generated.cs new file mode 100644 index 0000000..e8c7682 --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1.generated.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +// Produced by Entity Framework Visual Editor v4.2.3.4 +// Source: https://github.com/msawczyn/EFDesigner +// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner +// Documentation: https://msawczyn.github.io/EFDesigner/ +// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Sandbox_EFCore_Test +{ + /// + public partial class EFModel1 : DbContext + { + #region DbSets + public virtual Microsoft.EntityFrameworkCore.DbSet BaseTypes { get; set; } + public virtual Microsoft.EntityFrameworkCore.DbSet Entity1 { get; set; } + public virtual Microsoft.EntityFrameworkCore.DbSet Entity2 { get; set; } + + #endregion DbSets + + /// + /// Default connection string + /// + public static string ConnectionString { get; set; } = @"Data Source=.\sqlexpress;Initial Catalog=Sandbox;Integrated Security=True;Persist Security Info=True;TrustServerCertificate=True"; + + /// + /// + /// Initializes a new instance of the class using the specified options. + /// The method will still be called to allow further + /// configuration of the options. + /// + /// + /// The options for this context. + public EFModel1(DbContextOptions options) : base(options) + { + } + + partial void CustomInit(DbContextOptionsBuilder optionsBuilder); + + partial void OnModelCreatingImpl(ModelBuilder modelBuilder); + partial void OnModelCreatedImpl(ModelBuilder modelBuilder); + + /// + /// Override this method to further configure the model that was discovered by convention from the entity types + /// exposed in properties on your derived context. The resulting model may be cached + /// and re-used for subsequent instances of your derived context. + /// + /// + /// If a model is explicitly set on the options for this context (via ) + /// then this method will not be run. + /// + /// + /// The builder being used to construct the model for this context. Databases (and other extensions) typically + /// define extension methods on this object that allow you to configure aspects of the model that are specific + /// to a given database. + /// + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + base.OnModelCreating(modelBuilder); + OnModelCreatingImpl(modelBuilder); + + modelBuilder.HasDefaultSchema("dbo"); + + modelBuilder.Entity() + .ToTable("BaseTypes") + .HasKey(t => t.Id); + modelBuilder.Entity() + .Property(t => t.Id) + .ValueGeneratedOnAdd() + .IsRequired(); + + modelBuilder.Entity() + .ToTable("Entity1") + .HasBaseType(); + + modelBuilder.Entity() + .ToTable("Entity2") + .HasBaseType(); + + OnModelCreatedImpl(modelBuilder); + } + } +} diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContextFactory.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1Factory.generated.cs similarity index 73% rename from src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContextFactory.generated.cs rename to src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1Factory.generated.cs index 8e02282..6a54ffe 100644 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/CreditContextFactory.generated.cs +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Context/EFModel1Factory.generated.cs @@ -5,7 +5,7 @@ // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // -// Produced by Entity Framework Visual Editor v4.2.3.2 +// Produced by Entity Framework Visual Editor v4.2.3.4 // Source: https://github.com/msawczyn/EFDesigner // Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner // Documentation: https://msawczyn.github.io/EFDesigner/ @@ -22,7 +22,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; -namespace Credit.API.Domain_RE.Models_RE +namespace Sandbox_EFCore_Test { /// /// A factory for creating derived DbContext instances. Implement this interface to enable design-time services for context @@ -30,27 +30,27 @@ namespace Credit.API.Domain_RE.Models_RE /// to enable specific design-time experiences such as Migrations. Design-time services will automatically discover /// implementations of this interface that are in the startup assembly or the same assembly as the derived context. /// - public partial class CreditContextDesignTimeFactory: IDesignTimeDbContextFactory + public partial class EFModel1DesignTimeFactory: IDesignTimeDbContextFactory { /// /// Partial method to allow post-creation configuration of the DbContext after it's created /// but before it's returned. /// - partial void Initialize(CreditContext dbContext); + partial void Initialize(EFModel1 dbContext); /// Creates a new instance of a derived context. /// Arguments provided by the design-time service. - /// An instance of . - public CreditContext CreateDbContext(string[] args) + /// An instance of . + public EFModel1 CreateDbContext(string[] args) { - DbContextOptionsBuilder optionsBuilder = new DbContextOptionsBuilder(); + DbContextOptionsBuilder optionsBuilder = new DbContextOptionsBuilder(); - // Please provide the CreditContext.ConfigureOptions(optionsBuilder) in the partial class as + // Please provide the EFModel1.ConfigureOptions(optionsBuilder) in the partial class as // public static void ConfigureOptions(DbContextOptionsBuilder optionsBuilder) {{ ... }} // If you have custom initialization for the context, you can then consolidate the code by defining the CustomInit partial as // partial void CustomInit(DbContextOptionsBuilder optionsBuilder) => ConfigureOptions(optionsBuilder); - CreditContext.ConfigureOptions(optionsBuilder); - CreditContext result = new CreditContext(optionsBuilder.Options); + EFModel1.ConfigureOptions(optionsBuilder); + EFModel1 result = new EFModel1(optionsBuilder.Options); Initialize(result); return result; @@ -63,13 +63,13 @@ public CreditContext CreateDbContext(string[] args) /// /// See Using DbContextFactory for more information. /// - public partial class CreditContextFactory: IDbContextFactory + public partial class EFModel1Factory: IDbContextFactory { /// /// Partial method to allow post-creation configuration of the DbContext after it's created /// but before it's returned. /// - partial void Initialize(CreditContext dbContext); + partial void Initialize(EFModel1 dbContext); /// /// @@ -80,16 +80,16 @@ public partial class CreditContextFactory: IDbContextFactory /// /// /// A new context instance. - public CreditContext CreateDbContext() + public EFModel1 CreateDbContext() { - DbContextOptionsBuilder optionsBuilder = new DbContextOptionsBuilder(); + DbContextOptionsBuilder optionsBuilder = new DbContextOptionsBuilder(); - // Please provide the CreditContext.ConfigureOptions(optionsBuilder) in the partial class as + // Please provide the EFModel1.ConfigureOptions(optionsBuilder) in the partial class as // public static void ConfigureOptions(DbContextOptionsBuilder optionsBuilder) {{ ... }} // If you have custom initialization for the context, you can then consolidate the code by defining the CustomInit partial as // partial void CustomInit(DbContextOptionsBuilder optionsBuilder) => ConfigureOptions(optionsBuilder); - CreditContext.ConfigureOptions(optionsBuilder); - CreditContext result = new CreditContext(optionsBuilder.Options); + EFModel1.ConfigureOptions(optionsBuilder); + EFModel1 result = new EFModel1(optionsBuilder.Options); Initialize(result); return result; diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/AddressInformations.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/AddressInformations.generated.cs deleted file mode 100644 index 66f1ac7..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/AddressInformations.generated.cs +++ /dev/null @@ -1,233 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class AddressInformations - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected AddressInformations() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static AddressInformations CreateAddressInformationsUnsafe() - { - return new AddressInformations(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for AddressInformations.CreditProfile <--> CreditProfiles.AddressInformations. - /// - public AddressInformations(Guid addressinformationid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.AddressInformationId = addressinformationid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.AddressInformations.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for AddressInformations.CreditProfile <--> CreditProfiles.AddressInformations. - /// - public static AddressInformations Create(Guid addressinformationid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new AddressInformations(addressinformationid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid AddressInformationId { get; set; } - - /// - /// Max length = 15 - /// - [MaxLength(15)] - [StringLength(15)] - public string CensusGeoCode { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string City { get; set; } - - /// - /// Max length = 15 - /// - [MaxLength(15)] - [StringLength(15)] - public string CountyCode { get; set; } - - /// - /// Indexed, Required - /// Foreign key for AddressInformations.CreditProfile <--> CreditProfiles.AddressInformations. - /// - [Required] - [System.ComponentModel.Description("Foreign key for AddressInformations.CreditProfile <--> CreditProfiles.AddressInformations. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string DwellingType { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string FirstReportedDate { get; set; } - - /// - /// Max length = 15 - /// - [MaxLength(15)] - [StringLength(15)] - public string LastReportingSubscriberCode { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string LastUpdatedDate { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string MsaCode { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string Source { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string State { get; set; } - - /// - /// Max length = 25 - /// - [MaxLength(25)] - [StringLength(25)] - public string StateCode { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string StreetName { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string StreetPrefix { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string StreetSuffix { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string TimesReported { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string UnitId { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string UnitType { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string Zipcode { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Attributes.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Attributes.generated.cs deleted file mode 100644 index 842b45f..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Attributes.generated.cs +++ /dev/null @@ -1,121 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Attributes - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Attributes() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Attributes CreateAttributesUnsafe() - { - return new Attributes(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for Attributes.Summaries <--> Summaries.Attributes. - /// - public Attributes(Guid attributesid, Guid summariesid, global::Credit.API.Domain_RE.Models_RE.Summaries summaries) - { - this.AttributesId = attributesid; - - this.SummariesId = summariesid; - - if (summaries == null) throw new ArgumentNullException(nameof(summaries)); - this.Summaries = summaries; - summaries.Attributes.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for Attributes.Summaries <--> Summaries.Attributes. - /// - public static Attributes Create(Guid attributesid, Guid summariesid, global::Credit.API.Domain_RE.Models_RE.Summaries summaries) - { - return new Attributes(attributesid, summariesid, summaries); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid AttributesId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string Id { get; set; } - - /// - /// Indexed, Required - /// Foreign key for Attributes.Summaries <--> Summaries.Attributes. - /// - [Required] - [System.ComponentModel.Description("Foreign key for Attributes.Summaries <--> Summaries.Attributes. ")] - public Guid SummariesId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string Value { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.Summaries Summaries { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/BaseType.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/BaseType.generated.cs new file mode 100644 index 0000000..75ca60f --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/BaseType.generated.cs @@ -0,0 +1,54 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +// Produced by Entity Framework Visual Editor v4.2.3.4 +// Source: https://github.com/msawczyn/EFDesigner +// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner +// Documentation: https://msawczyn.github.io/EFDesigner/ +// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Runtime.CompilerServices; + +namespace Sandbox_EFCore_Test +{ + public partial class BaseType + { + partial void Init(); + + /// + /// Default constructor + /// + public BaseType() + { + Init(); + } + + /************************************************************************* + * Properties + *************************************************************************/ + + /// + /// Identity, Indexed, Required + /// Unique identifier + /// + [Key] + [Required] + [System.ComponentModel.Description("Unique identifier")] + public long Id { get; set; } + + } +} + diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerAssistanceReferralAddresses.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerAssistanceReferralAddresses.generated.cs deleted file mode 100644 index 884033a..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerAssistanceReferralAddresses.generated.cs +++ /dev/null @@ -1,136 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class ConsumerAssistanceReferralAddresses - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected ConsumerAssistanceReferralAddresses() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static ConsumerAssistanceReferralAddresses CreateConsumerAssistanceReferralAddressesUnsafe() - { - return new ConsumerAssistanceReferralAddresses(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for ConsumerAssistanceReferralAddresses.CreditProfile <--> CreditProfiles.ConsumerAssistanceReferralAddresses. - public ConsumerAssistanceReferralAddresses(Guid consumerassistancereferraladdressid, Guid creditprofileid) - { - this.ConsumerAssistanceReferralAddressId = consumerassistancereferraladdressid; - - this.CreditProfileId = creditprofileid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for ConsumerAssistanceReferralAddresses.CreditProfile <--> CreditProfiles.ConsumerAssistanceReferralAddresses. - public static ConsumerAssistanceReferralAddresses Create(Guid consumerassistancereferraladdressid, Guid creditprofileid) - { - return new ConsumerAssistanceReferralAddresses(consumerassistancereferraladdressid, creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string CityStateZip { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid ConsumerAssistanceReferralAddressId { get; set; } - - /// - /// Indexed, Required - /// Foreign key for ConsumerAssistanceReferralAddresses.CreditProfile <--> CreditProfiles.ConsumerAssistanceReferralAddresses. - /// - [Required] - [System.ComponentModel.Description("Foreign key for ConsumerAssistanceReferralAddresses.CreditProfile <--> CreditProfiles.ConsumerAssistanceReferralAddresses. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string OfficeName { get; set; } - - /// - /// Max length = 20 - /// - [MaxLength(20)] - [StringLength(20)] - public string Phone { get; set; } - - /// - /// Max length = 25 - /// - [MaxLength(25)] - [StringLength(25)] - public string Pobox { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string StreetName { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerIdentities.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerIdentities.generated.cs deleted file mode 100644 index f275c37..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ConsumerIdentities.generated.cs +++ /dev/null @@ -1,117 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class ConsumerIdentities - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected ConsumerIdentities() - { - Names = new System.Collections.Generic.HashSet(); - Phones = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static ConsumerIdentities CreateConsumerIdentitiesUnsafe() - { - return new ConsumerIdentities(); - } - - /// - /// Public constructor with required data - /// - /// Foreign key for ConsumerIdentities.Dobs <--> Dobs.ConsumerIdentity. - /// Foreign key for ConsumerIdentities.CreditProfile <--> CreditProfiles.ConsumerIdentities. - public ConsumerIdentities(Guid consumeridentityid, Guid creditprofileid) - { - this.ConsumerIdentityId = consumeridentityid; - - this.CreditProfileId = creditprofileid; - - Names = new System.Collections.Generic.HashSet(); - Phones = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// Foreign key for ConsumerIdentities.Dobs <--> Dobs.ConsumerIdentity. - /// Foreign key for ConsumerIdentities.CreditProfile <--> CreditProfiles.ConsumerIdentities. - public static ConsumerIdentities Create(Guid consumeridentityid, Guid creditprofileid) - { - return new ConsumerIdentities(consumeridentityid, creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Identity, Indexed, Required - /// Foreign key for ConsumerIdentities.Dobs <--> Dobs.ConsumerIdentity. - /// - [Key] - [Required] - [System.ComponentModel.Description("Foreign key for ConsumerIdentities.Dobs <--> Dobs.ConsumerIdentity. ")] - public Guid ConsumerIdentityId { get; set; } - - /// - /// Indexed, Required - /// Foreign key for ConsumerIdentities.CreditProfile <--> CreditProfiles.ConsumerIdentities. - /// - [Required] - [System.ComponentModel.Description("Foreign key for ConsumerIdentities.CreditProfile <--> CreditProfiles.ConsumerIdentities. ")] - public Guid CreditProfileId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.Dobs Dobs { get; set; } - - public virtual ICollection Names { get; private set; } - - public virtual ICollection Phones { get; private set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditProfiles.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditProfiles.generated.cs deleted file mode 100644 index b97930f..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditProfiles.generated.cs +++ /dev/null @@ -1,232 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class CreditProfiles - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected CreditProfiles() - { - DirectChecks = new System.Collections.Generic.HashSet(); - EmploymentInformations = new System.Collections.Generic.HashSet(); - FraudShields = new System.Collections.Generic.HashSet(); - InformationalMessages = new System.Collections.Generic.HashSet(); - Inquiries = new System.Collections.Generic.HashSet(); - PublicRecords = new System.Collections.Generic.HashSet(); - RiskModels = new System.Collections.Generic.HashSet(); - Ssns = new System.Collections.Generic.HashSet(); - Statements = new System.Collections.Generic.HashSet(); - Summaries = new System.Collections.Generic.HashSet(); - TrendedTradeLines = new System.Collections.Generic.HashSet(); - AddressInformations = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static CreditProfiles CreateCreditProfilesUnsafe() - { - return new CreditProfiles(); - } - - /// - /// Public constructor with required data - /// - /// Foreign key for CreditProfiles.UniqueConsumerIdentifiers <--> UniqueConsumerIdentifiers.CreditProfile. Foreign key for CreditProfiles.Ofacs <--> Ofacs.CreditProfile. Foreign key for CreditProfiles.ModelAttribute <--> ModelAttribute.CreditProfile. Foreign key for CreditProfiles.Mlas <--> Mlas.CreditProfile. - /// - /// - /// - public CreditProfiles(Guid creditprofileid, DateTime createdon, DateTime lastaccessedon, DateTime lastpulledon) - { - this.CreditProfileId = creditprofileid; - - this.CreatedOn = createdon; - - this.LastAccessedOn = lastaccessedon; - - this.LastPulledOn = lastpulledon; - - DirectChecks = new System.Collections.Generic.HashSet(); - EmploymentInformations = new System.Collections.Generic.HashSet(); - FraudShields = new System.Collections.Generic.HashSet(); - InformationalMessages = new System.Collections.Generic.HashSet(); - Inquiries = new System.Collections.Generic.HashSet(); - PublicRecords = new System.Collections.Generic.HashSet(); - RiskModels = new System.Collections.Generic.HashSet(); - Ssns = new System.Collections.Generic.HashSet(); - Statements = new System.Collections.Generic.HashSet(); - Summaries = new System.Collections.Generic.HashSet(); - TrendedTradeLines = new System.Collections.Generic.HashSet(); - AddressInformations = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// Foreign key for CreditProfiles.UniqueConsumerIdentifiers <--> UniqueConsumerIdentifiers.CreditProfile. Foreign key for CreditProfiles.Ofacs <--> Ofacs.CreditProfile. Foreign key for CreditProfiles.ModelAttribute <--> ModelAttribute.CreditProfile. Foreign key for CreditProfiles.Mlas <--> Mlas.CreditProfile. - /// - /// - /// - public static CreditProfiles Create(Guid creditprofileid, DateTime createdon, DateTime lastaccessedon, DateTime lastpulledon) - { - return new CreditProfiles(creditprofileid, createdon, lastaccessedon, lastpulledon); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string CreatedBy { get; set; } - - /// - /// Required - /// - [Required] - public DateTime CreatedOn { get; set; } - - /// - /// Identity, Indexed, Required - /// Foreign key for CreditProfiles.UniqueConsumerIdentifiers <--> UniqueConsumerIdentifiers.CreditProfile. - /// Foreign key for CreditProfiles.Ofacs <--> Ofacs.CreditProfile. Foreign key for CreditProfiles.ModelAttribute - /// <--> ModelAttribute.CreditProfile. Foreign key for CreditProfiles.Mlas <--> Mlas.CreditProfile. - /// - [Key] - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.UniqueConsumerIdentifiers <--> UniqueConsumerIdentifiers.CreditProfile. Foreign key for CreditProfiles.Ofacs <--> Ofacs.CreditProfile. Foreign key for CreditProfiles.ModelAttribute <--> ModelAttribute.CreditProfile. Foreign key for CreditProfiles.Mlas <--> Mlas.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string FirstNameUsedToCreateRecord { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string LastAccessedBy { get; set; } - - /// - /// Required - /// - [Required] - public DateTime LastAccessedOn { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string LastNameUsedToCreateRecord { get; set; } - - /// - /// Required - /// - [Required] - public DateTime LastPulledOn { get; set; } - - /// - /// Max length = 9 - /// - [MaxLength(9)] - [StringLength(9)] - public string SsnUsedToCreateRecord { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - public virtual ICollection AddressInformations { get; private set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ConsumerAssistanceReferralAddresses ConsumerAssistanceReferralAddresses { get; set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities ConsumerIdentities { get; set; } - - public virtual ICollection DirectChecks { get; private set; } - - public virtual ICollection EmploymentInformations { get; private set; } - - public virtual ICollection FraudShields { get; private set; } - - public virtual ICollection InformationalMessages { get; private set; } - - public virtual ICollection Inquiries { get; private set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.Mlas Mlas { get; set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ModelAttribute ModelAttribute { get; set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.Ofacs Ofacs { get; set; } - - public virtual ICollection PublicRecords { get; private set; } - - public virtual ICollection RiskModels { get; private set; } - - public virtual ICollection Ssns { get; private set; } - - public virtual ICollection Statements { get; private set; } - - public virtual ICollection Summaries { get; private set; } - - public virtual ICollection TrendedTradeLines { get; private set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.UniqueConsumerIdentifiers UniqueConsumerIdentifiers { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditReportInfo.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditReportInfo.generated.cs deleted file mode 100644 index ab0834e..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/CreditReportInfo.generated.cs +++ /dev/null @@ -1,205 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class CreditReportInfo - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected CreditReportInfo() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static CreditReportInfo CreateCreditReportInfoUnsafe() - { - return new CreditReportInfo(); - } - - /// - /// Public constructor with required data - /// - /// - public CreditReportInfo(Guid creditprofileid) - { - this.CreditProfileId = creditprofileid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - public static CreditReportInfo Create(Guid creditprofileid) - { - return new CreditReportInfo(creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string AccountType { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string AcctNumber { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Amount1 { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string BalanceAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string BalanceDate { get; set; } - - /// - /// Required - /// - [Required] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Day { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Ecoa { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string FirstNameUsedToCreateRecord { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string LastNameUsedToCreateRecord { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string LastPaymentDate { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Month { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string MonthlyPaymentAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string OpenDate { get; set; } - - /// - /// Max length = 1 - /// - [MaxLength(1)] - [StringLength(1)] - public string OpenOrClosed { get; set; } - - /// - /// Max length = 6 - /// - [MaxLength(6)] - [StringLength(6)] - public string Score { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string Status { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SubscriberName { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Year { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/DirectChecks.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/DirectChecks.generated.cs deleted file mode 100644 index ca18ed1..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/DirectChecks.generated.cs +++ /dev/null @@ -1,156 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class DirectChecks - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected DirectChecks() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static DirectChecks CreateDirectChecksUnsafe() - { - return new DirectChecks(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.DirectChecks <--> DirectChecks.CreditProfile. - /// - public DirectChecks(Guid directcheckid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.DirectCheckId = directcheckid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.DirectChecks.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.DirectChecks <--> DirectChecks.CreditProfile. - /// - public static DirectChecks Create(Guid directcheckid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new DirectChecks(directcheckid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.DirectChecks <--> DirectChecks.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.DirectChecks <--> DirectChecks.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid DirectCheckId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string SubscriberAddress { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SubscriberCity { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string SubscriberCode { get; set; } - - /// - /// Max length = 250 - /// - [MaxLength(250)] - [StringLength(250)] - public string SubscriberName { get; set; } - - /// - /// Max length = 15 - /// - [MaxLength(15)] - [StringLength(15)] - public string SubscriberPhone { get; set; } - - /// - /// Max length = 25 - /// - [MaxLength(25)] - [StringLength(25)] - public string SubscriberState { get; set; } - - /// - /// Max length = 15 - /// - [MaxLength(15)] - [StringLength(15)] - public string SubscriberZipCode { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Dobs.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Dobs.generated.cs deleted file mode 100644 index c5ea4f8..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Dobs.generated.cs +++ /dev/null @@ -1,120 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Dobs - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Dobs() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Dobs CreateDobsUnsafe() - { - return new Dobs(); - } - - /// - /// Public constructor with required data - /// - /// - /// - public Dobs(Guid dobid, Guid consumeridentityid) - { - this.DobId = dobid; - - this.ConsumerIdentityId = consumeridentityid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// - public static Dobs Create(Guid dobid, Guid consumeridentityid) - { - return new Dobs(dobid, consumeridentityid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// - [Required] - public Guid ConsumerIdentityId { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Day { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid DobId { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Month { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Year { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities ConsumerIdentity { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EmploymentInformations.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EmploymentInformations.generated.cs deleted file mode 100644 index bd1ac1f..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EmploymentInformations.generated.cs +++ /dev/null @@ -1,163 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class EmploymentInformations - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected EmploymentInformations() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static EmploymentInformations CreateEmploymentInformationsUnsafe() - { - return new EmploymentInformations(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.EmploymentInformations <--> EmploymentInformations.CreditProfile. - /// - public EmploymentInformations(Guid employmentinformationid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.EmploymentInformationId = employmentinformationid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.EmploymentInformations.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.EmploymentInformations <--> EmploymentInformations.CreditProfile. - /// - public static EmploymentInformations Create(Guid employmentinformationid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new EmploymentInformations(employmentinformationid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string AddressExtraLine { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string AddressFirstLine { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string AddressSecondLine { get; set; } - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.EmploymentInformations <--> EmploymentInformations.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.EmploymentInformations <--> EmploymentInformations.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid EmploymentInformationId { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string FirstReportedDate { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string LastUpdatedDate { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string Name { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string Source { get; set; } - - /// - /// Max length = 15 - /// - [MaxLength(15)] - [StringLength(15)] - public string Zipcode { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EnhancedPaymentDatas.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EnhancedPaymentDatas.generated.cs deleted file mode 100644 index 68efc4d..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/EnhancedPaymentDatas.generated.cs +++ /dev/null @@ -1,283 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class EnhancedPaymentDatas - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected EnhancedPaymentDatas() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static EnhancedPaymentDatas CreateEnhancedPaymentDatasUnsafe() - { - return new EnhancedPaymentDatas(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for EnhancedPaymentDatas.TrendedTradeLine <--> TrendedTradeLines.EnhancedPaymentDatas. - public EnhancedPaymentDatas(Guid enhancedpaymentdataid, Guid trendedtradelineid) - { - this.EnhancedPaymentDataId = enhancedpaymentdataid; - - this.TrendedTradeLineId = trendedtradelineid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for EnhancedPaymentDatas.TrendedTradeLine <--> TrendedTradeLines.EnhancedPaymentDatas. - public static EnhancedPaymentDatas Create(Guid enhancedpaymentdataid, Guid trendedtradelineid) - { - return new EnhancedPaymentDatas(enhancedpaymentdataid, trendedtradelineid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string ActualPaymentAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string ChargeOffAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string CiiCode { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string ComplianceCondition { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string CreditLimitAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string EnhancedAccountCondition { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string EnhancedAccountType { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid EnhancedPaymentDataId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string EnhancedPaymentHistory84 { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string EnhancedPaymentStatus { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string EnhancedSpecialComment { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string EnhancedTerms { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string EnhancedTermsFrequency { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string FirstDelinquencyDate { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string HighBalanceAmount { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string MaxDelinquencyCode { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string MortgageId { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string OriginalCreditorClassificationCode { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string OriginalLoanAmount { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string PaymentLevelDate { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string PurchasedPortfolioFromName { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SecondaryAgencyCode { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SecondaryAgencyId { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string SecondDelinquencyDate { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string SpecialPaymentAmount { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string SpecialPaymentCode { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string SpecialPaymentDate { get; set; } - - /// - /// Indexed, Required - /// Foreign key for EnhancedPaymentDatas.TrendedTradeLine <--> TrendedTradeLines.EnhancedPaymentDatas. - /// - [Required] - [System.ComponentModel.Description("Foreign key for EnhancedPaymentDatas.TrendedTradeLine <--> TrendedTradeLines.EnhancedPaymentDatas. ")] - public Guid TrendedTradeLineId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.TrendedTradeLines TrendedTradeLine { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity1.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity1.generated.cs new file mode 100644 index 0000000..fad7cc3 --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity1.generated.cs @@ -0,0 +1,47 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +// Produced by Entity Framework Visual Editor v4.2.3.4 +// Source: https://github.com/msawczyn/EFDesigner +// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner +// Documentation: https://msawczyn.github.io/EFDesigner/ +// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Runtime.CompilerServices; + +namespace Sandbox_EFCore_Test +{ + public partial class Entity1: global::Sandbox_EFCore_Test.BaseType + { + partial void Init(); + + /// + /// Default constructor + /// + public Entity1(): base() + { + Init(); + } + + /************************************************************************* + * Properties + *************************************************************************/ + + public string Property1 { get; set; } + + } +} + diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity2.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity2.generated.cs new file mode 100644 index 0000000..0243560 --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Entity2.generated.cs @@ -0,0 +1,47 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +// Produced by Entity Framework Visual Editor v4.2.3.4 +// Source: https://github.com/msawczyn/EFDesigner +// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner +// Documentation: https://msawczyn.github.io/EFDesigner/ +// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Runtime.CompilerServices; + +namespace Sandbox_EFCore_Test +{ + public partial class Entity2: global::Sandbox_EFCore_Test.BaseType + { + partial void Init(); + + /// + /// Default constructor + /// + public Entity2(): base() + { + Init(); + } + + /************************************************************************* + * Properties + *************************************************************************/ + + public string Property2 { get; set; } + + } +} + diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShieldIndicators.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShieldIndicators.generated.cs deleted file mode 100644 index 0e304f3..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShieldIndicators.generated.cs +++ /dev/null @@ -1,106 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class FraudShieldIndicators - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected FraudShieldIndicators() - { - Items = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static FraudShieldIndicators CreateFraudShieldIndicatorsUnsafe() - { - return new FraudShieldIndicators(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for FraudShieldIndicators.FraudShield <--> FraudShields.FraudShieldIndicators. - public FraudShieldIndicators(Guid fraudshieldindicatorsid, Guid fraudshieldid) - { - this.FraudShieldIndicatorsId = fraudshieldindicatorsid; - - this.FraudShieldId = fraudshieldid; - - Items = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for FraudShieldIndicators.FraudShield <--> FraudShields.FraudShieldIndicators. - public static FraudShieldIndicators Create(Guid fraudshieldindicatorsid, Guid fraudshieldid) - { - return new FraudShieldIndicators(fraudshieldindicatorsid, fraudshieldid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for FraudShieldIndicators.FraudShield <--> FraudShields.FraudShieldIndicators. - /// - [Required] - [System.ComponentModel.Description("Foreign key for FraudShieldIndicators.FraudShield <--> FraudShields.FraudShieldIndicators. ")] - public Guid FraudShieldId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid FraudShieldIndicatorsId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.FraudShields FraudShield { get; set; } - - public virtual ICollection Items { get; private set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShields.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShields.generated.cs deleted file mode 100644 index 7cc5e83..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/FraudShields.generated.cs +++ /dev/null @@ -1,209 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class FraudShields - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected FraudShields() - { - // NOTE: This class has one-to-one associations with FraudShields. - // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static FraudShields CreateFraudShieldsUnsafe() - { - return new FraudShields(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.FraudShields <--> FraudShields.CreditProfile. - /// - public FraudShields(Guid fraudshieldid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - // NOTE: This class has one-to-one associations with FraudShields. - // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. - - this.FraudShieldId = fraudshieldid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.FraudShields.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.FraudShields <--> FraudShields.CreditProfile. - /// - public static FraudShields Create(Guid fraudshieldid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new FraudShields(fraudshieldid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 6 - /// - [MaxLength(6)] - [StringLength(6)] - public string AddressCount { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string AddressDate { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string AddressErrorCode { get; set; } - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.FraudShields <--> FraudShields.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.FraudShields <--> FraudShields.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string DateOfBirth { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string DateOfDeath { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid FraudShieldId { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Sic { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string SocialCount { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string SocialDate { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string SocialErrorCode { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string SsnFirstPossibleIssuanceYear { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string SsnLastPossibleIssuanceYear { get; set; } - - /// - /// Max length = 150 - /// - [MaxLength(150)] - [StringLength(150)] - public string Text { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Type { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.FraudShieldIndicators FraudShieldIndicators { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/InformationalMessages.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/InformationalMessages.generated.cs deleted file mode 100644 index 0f918cf..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/InformationalMessages.generated.cs +++ /dev/null @@ -1,128 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class InformationalMessages - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected InformationalMessages() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static InformationalMessages CreateInformationalMessagesUnsafe() - { - return new InformationalMessages(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.InformationalMessages <--> InformationalMessages.CreditProfile. - /// - public InformationalMessages(Guid informationalmessageid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.InformationalMessageId = informationalmessageid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.InformationalMessages.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.InformationalMessages <--> InformationalMessages.CreditProfile. - /// - public static InformationalMessages Create(Guid informationalmessageid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new InformationalMessages(informationalmessageid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.InformationalMessages <--> InformationalMessages.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.InformationalMessages <--> InformationalMessages.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid InformationalMessageId { get; set; } - - /// - /// Max length = 6 - /// - [MaxLength(6)] - [StringLength(6)] - public string MessageNumber { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string MessageNumberDetailed { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string MessageText { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Inquiries.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Inquiries.generated.cs deleted file mode 100644 index b07529d..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Inquiries.generated.cs +++ /dev/null @@ -1,156 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Inquiries - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Inquiries() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Inquiries CreateInquiriesUnsafe() - { - return new Inquiries(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.Inquiries <--> Inquiries.CreditProfile. - /// - public Inquiries(Guid inquiryid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.InquiryId = inquiryid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.Inquiries.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.Inquiries <--> Inquiries.CreditProfile. - /// - public static Inquiries Create(Guid inquiryid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new Inquiries(inquiryid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Amount { get; set; } - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.Inquiries <--> Inquiries.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.Inquiries <--> Inquiries.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string Date { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid InquiryId { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Kob { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string SubscriberCode { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string SubscriberName { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string Terms { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string Type { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Items.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Items.generated.cs deleted file mode 100644 index 352a925..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Items.generated.cs +++ /dev/null @@ -1,114 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Items - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Items() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Items CreateItemsUnsafe() - { - return new Items(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for FraudShieldIndicators.Items <--> Items.FraudShieldIndicators. - /// - public Items(Guid itemid, Guid fraudshieldindicatorsid, global::Credit.API.Domain_RE.Models_RE.FraudShieldIndicators fraudshieldindicators) - { - this.ItemId = itemid; - - this.FraudShieldIndicatorsId = fraudshieldindicatorsid; - - if (fraudshieldindicators == null) throw new ArgumentNullException(nameof(fraudshieldindicators)); - this.FraudShieldIndicators = fraudshieldindicators; - fraudshieldindicators.Items.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for FraudShieldIndicators.Items <--> Items.FraudShieldIndicators. - /// - public static Items Create(Guid itemid, Guid fraudshieldindicatorsid, global::Credit.API.Domain_RE.Models_RE.FraudShieldIndicators fraudshieldindicators) - { - return new Items(itemid, fraudshieldindicatorsid, fraudshieldindicators); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for FraudShieldIndicators.Items <--> Items.FraudShieldIndicators. - /// - [Required] - [System.ComponentModel.Description("Foreign key for FraudShieldIndicators.Items <--> Items.FraudShieldIndicators. ")] - public Guid FraudShieldIndicatorsId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid ItemId { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string Items1 { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.FraudShieldIndicators FraudShieldIndicators { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Mlas.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Mlas.generated.cs deleted file mode 100644 index 5003f90..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Mlas.generated.cs +++ /dev/null @@ -1,113 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Mlas - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Mlas() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Mlas CreateMlasUnsafe() - { - return new Mlas(); - } - - /// - /// Public constructor with required data - /// - /// - /// - public Mlas(Guid mlaid, Guid creditprofileid) - { - this.MlaId = mlaid; - - this.CreditProfileId = creditprofileid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// - public static Mlas Create(Guid mlaid, Guid creditprofileid) - { - return new Mlas(mlaid, creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// - [Required] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 6 - /// - [MaxLength(6)] - [StringLength(6)] - public string MessageNumber { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string MessageText { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid MlaId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttribute.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttribute.generated.cs deleted file mode 100644 index b628210..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttribute.generated.cs +++ /dev/null @@ -1,111 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class ModelAttribute - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected ModelAttribute() - { - ModelAttributes = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static ModelAttribute CreateModelAttributeUnsafe() - { - return new ModelAttribute(); - } - - /// - /// Public constructor with required data - /// - /// - /// - public ModelAttribute(Guid modelattributeid, Guid creditprofileid) - { - this.ModelAttributeId = modelattributeid; - - this.CreditProfileId = creditprofileid; - - ModelAttributes = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// - public static ModelAttribute Create(Guid modelattributeid, Guid creditprofileid) - { - return new ModelAttribute(modelattributeid, creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// - [Required] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string Message { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid ModelAttributeId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - public virtual ICollection ModelAttributes { get; private set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttributes.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttributes.generated.cs deleted file mode 100644 index e300bd3..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ModelAttributes.generated.cs +++ /dev/null @@ -1,135 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class ModelAttributes - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected ModelAttributes() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static ModelAttributes CreateModelAttributesUnsafe() - { - return new ModelAttributes(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for ModelAttribute.ModelAttributes <--> ModelAttributes.ModelAttribute. - /// - public ModelAttributes(Guid modelattributesid, Guid modelattributeid, global::Credit.API.Domain_RE.Models_RE.ModelAttribute modelattribute) - { - this.ModelAttributesId = modelattributesid; - - this.ModelAttributeId = modelattributeid; - - if (modelattribute == null) throw new ArgumentNullException(nameof(modelattribute)); - this.ModelAttribute = modelattribute; - modelattribute.ModelAttributes.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for ModelAttribute.ModelAttributes <--> ModelAttributes.ModelAttribute. - /// - public static ModelAttributes Create(Guid modelattributesid, Guid modelattributeid, global::Credit.API.Domain_RE.Models_RE.ModelAttribute modelattribute) - { - return new ModelAttributes(modelattributesid, modelattributeid, modelattribute); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string AttributeValue { get; set; } - - /// - /// Indexed, Required - /// Foreign key for ModelAttribute.ModelAttributes <--> ModelAttributes.ModelAttribute. - /// - [Required] - [System.ComponentModel.Description("Foreign key for ModelAttribute.ModelAttributes <--> ModelAttributes.ModelAttribute. ")] - public Guid ModelAttributeId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid ModelAttributesId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string ModelTypeIndicator { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SignOfAttribute { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string VariableName { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ModelAttribute ModelAttribute { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Names.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Names.generated.cs deleted file mode 100644 index d3b7c4e..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Names.generated.cs +++ /dev/null @@ -1,149 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Names - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Names() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Names CreateNamesUnsafe() - { - return new Names(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for ConsumerIdentities.Names <--> Names.ConsumerIdentity. - /// - public Names(Guid nameid, Guid consumeridentityid, global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities consumeridentity) - { - this.NameId = nameid; - - this.ConsumerIdentityId = consumeridentityid; - - if (consumeridentity == null) throw new ArgumentNullException(nameof(consumeridentity)); - this.ConsumerIdentity = consumeridentity; - consumeridentity.Names.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for ConsumerIdentities.Names <--> Names.ConsumerIdentity. - /// - public static Names Create(Guid nameid, Guid consumeridentityid, global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities consumeridentity) - { - return new Names(nameid, consumeridentityid, consumeridentity); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for ConsumerIdentities.Names <--> Names.ConsumerIdentity. - /// - [Required] - [System.ComponentModel.Description("Foreign key for ConsumerIdentities.Names <--> Names.ConsumerIdentity. ")] - public Guid ConsumerIdentityId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string FirstName { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string GenerationCode { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string MiddleName { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid NameId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string SecondSurname { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string Surname { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Type { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities ConsumerIdentity { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ofacs.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ofacs.generated.cs deleted file mode 100644 index 51c12b2..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ofacs.generated.cs +++ /dev/null @@ -1,113 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Ofacs - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Ofacs() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Ofacs CreateOfacsUnsafe() - { - return new Ofacs(); - } - - /// - /// Public constructor with required data - /// - /// - /// - public Ofacs(Guid ofacid, Guid creditprofileid) - { - this.OfacId = ofacid; - - this.CreditProfileId = creditprofileid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// - public static Ofacs Create(Guid ofacid, Guid creditprofileid) - { - return new Ofacs(ofacid, creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// - [Required] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 6 - /// - [MaxLength(6)] - [StringLength(6)] - public string MessageNumber { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string MessageText { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid OfacId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Phones.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Phones.generated.cs deleted file mode 100644 index 12fe667..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Phones.generated.cs +++ /dev/null @@ -1,128 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Phones - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Phones() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Phones CreatePhonesUnsafe() - { - return new Phones(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for ConsumerIdentities.Phones <--> Phones.ConsumerIdentity. - /// - public Phones(Guid phoneid, Guid consumeridentityid, global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities consumeridentity) - { - this.PhoneId = phoneid; - - this.ConsumerIdentityId = consumeridentityid; - - if (consumeridentity == null) throw new ArgumentNullException(nameof(consumeridentity)); - this.ConsumerIdentity = consumeridentity; - consumeridentity.Phones.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for ConsumerIdentities.Phones <--> Phones.ConsumerIdentity. - /// - public static Phones Create(Guid phoneid, Guid consumeridentityid, global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities consumeridentity) - { - return new Phones(phoneid, consumeridentityid, consumeridentity); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for ConsumerIdentities.Phones <--> Phones.ConsumerIdentity. - /// - [Required] - [System.ComponentModel.Description("Foreign key for ConsumerIdentities.Phones <--> Phones.ConsumerIdentity. ")] - public Guid ConsumerIdentityId { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Number { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid PhoneId { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Source { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string Type { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.ConsumerIdentities ConsumerIdentity { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/PublicRecords.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/PublicRecords.generated.cs deleted file mode 100644 index 7ecebaf..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/PublicRecords.generated.cs +++ /dev/null @@ -1,219 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class PublicRecords - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected PublicRecords() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static PublicRecords CreatePublicRecordsUnsafe() - { - return new PublicRecords(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.PublicRecords <--> PublicRecords.CreditProfile. - /// - public PublicRecords(Guid publicrecordid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.PublicRecordId = publicrecordid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.PublicRecords.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.PublicRecords <--> PublicRecords.CreditProfile. - /// - public static PublicRecords Create(Guid publicrecordid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new PublicRecords(publicrecordid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string AdjustmentPercent { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Amount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string BankruptcyVoluntaryIndicator { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string BookPageSequence { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string ConsumerComment { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string CourtCode { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string CourtName { get; set; } - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.PublicRecords <--> PublicRecords.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.PublicRecords <--> PublicRecords.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string DisputeFlag { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Ecoa { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string Evaluation { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string FilingDate { get; set; } - - /// - /// Max length = 250 - /// - [MaxLength(250)] - [StringLength(250)] - public string PlaintiffName { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid PublicRecordId { get; set; } - - /// - /// Max length = 30 - /// - [MaxLength(30)] - [StringLength(30)] - public string ReferenceNumber { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string RepaymentPercent { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string Status { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string StatusDate { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/RiskModels.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/RiskModels.generated.cs deleted file mode 100644 index 8d7d8b2..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/RiskModels.generated.cs +++ /dev/null @@ -1,140 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class RiskModels - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected RiskModels() - { - ScoreFactors = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static RiskModels CreateRiskModelsUnsafe() - { - return new RiskModels(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.RiskModels <--> RiskModels.CreditProfile. - /// - public RiskModels(Guid riskmodelid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.RiskModelId = riskmodelid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.RiskModels.Add(this); - - ScoreFactors = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.RiskModels <--> RiskModels.CreditProfile. - /// - public static RiskModels Create(Guid riskmodelid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new RiskModels(riskmodelid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.RiskModels <--> RiskModels.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.RiskModels <--> RiskModels.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string Evaluation { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string ModelIndicator { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid RiskModelId { get; set; } - - /// - /// Max length = 6 - /// - [MaxLength(6)] - [StringLength(6)] - public string Score { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string ScorePercentile { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - public virtual ICollection ScoreFactors { get; private set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ScoreFactors.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ScoreFactors.generated.cs deleted file mode 100644 index e34243a..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/ScoreFactors.generated.cs +++ /dev/null @@ -1,121 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class ScoreFactors - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected ScoreFactors() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static ScoreFactors CreateScoreFactorsUnsafe() - { - return new ScoreFactors(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for RiskModels.ScoreFactors <--> ScoreFactors.RiskModel. - /// - public ScoreFactors(Guid scorefactorsid, Guid riskmodelid, global::Credit.API.Domain_RE.Models_RE.RiskModels riskmodel) - { - this.ScoreFactorsId = scorefactorsid; - - this.RiskModelId = riskmodelid; - - if (riskmodel == null) throw new ArgumentNullException(nameof(riskmodel)); - this.RiskModel = riskmodel; - riskmodel.ScoreFactors.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for RiskModels.ScoreFactors <--> ScoreFactors.RiskModel. - /// - public static ScoreFactors Create(Guid scorefactorsid, Guid riskmodelid, global::Credit.API.Domain_RE.Models_RE.RiskModels riskmodel) - { - return new ScoreFactors(scorefactorsid, riskmodelid, riskmodel); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string Code { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Importance { get; set; } - - /// - /// Indexed, Required - /// Foreign key for RiskModels.ScoreFactors <--> ScoreFactors.RiskModel. - /// - [Required] - [System.ComponentModel.Description("Foreign key for RiskModels.ScoreFactors <--> ScoreFactors.RiskModel. ")] - public Guid RiskModelId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid ScoreFactorsId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.RiskModels RiskModel { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ssns.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ssns.generated.cs deleted file mode 100644 index eb13629..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Ssns.generated.cs +++ /dev/null @@ -1,128 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Ssns - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Ssns() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Ssns CreateSsnsUnsafe() - { - return new Ssns(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.Ssns <--> Ssns.CreditProfile. - /// - public Ssns(Guid ssnid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.SsnId = ssnid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.Ssns.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.Ssns <--> Ssns.CreditProfile. - /// - public static Ssns Create(Guid ssnid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new Ssns(ssnid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.Ssns <--> Ssns.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.Ssns <--> Ssns.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 9 - /// - [MaxLength(9)] - [StringLength(9)] - public string Number { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid SsnId { get; set; } - - /// - /// Max length = 12 - /// - [MaxLength(12)] - [StringLength(12)] - public string SsnIndicators { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string VariationIndicator { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Statements.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Statements.generated.cs deleted file mode 100644 index 1f00629..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Statements.generated.cs +++ /dev/null @@ -1,128 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Statements - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Statements() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Statements CreateStatementsUnsafe() - { - return new Statements(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.Statements <--> Statements.CreditProfile. - /// - public Statements(Guid statementid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.StatementId = statementid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.Statements.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.Statements <--> Statements.CreditProfile. - /// - public static Statements Create(Guid statementid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new Statements(statementid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.Statements <--> Statements.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.Statements <--> Statements.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string DateReported { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid StatementId { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string StatementText { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string Type { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Summaries.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Summaries.generated.cs deleted file mode 100644 index 022f7f7..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/Summaries.generated.cs +++ /dev/null @@ -1,119 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class Summaries - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected Summaries() - { - Attributes = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static Summaries CreateSummariesUnsafe() - { - return new Summaries(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.Summaries <--> Summaries.CreditProfile. - /// - public Summaries(Guid summariesid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - this.SummariesId = summariesid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.Summaries.Add(this); - - Attributes = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.Summaries <--> Summaries.CreditProfile. - /// - public static Summaries Create(Guid summariesid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new Summaries(summariesid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.Summaries <--> Summaries.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.Summaries <--> Summaries.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid SummariesId { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SummaryType { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - public virtual ICollection Attributes { get; private set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTradeLines.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTradeLines.generated.cs deleted file mode 100644 index 49caa8d..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTradeLines.generated.cs +++ /dev/null @@ -1,389 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class TrendedTradeLines - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected TrendedTradeLines() - { - // NOTE: This class has one-to-one associations with TrendedTradeLines. - // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. - - TrendedTrades = new System.Collections.Generic.HashSet(); - - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static TrendedTradeLines CreateTrendedTradeLinesUnsafe() - { - return new TrendedTradeLines(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for CreditProfiles.TrendedTradeLines <--> TrendedTradeLines.CreditProfile. - /// - public TrendedTradeLines(Guid trendedtradelineid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - // NOTE: This class has one-to-one associations with TrendedTradeLines. - // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. - - this.TrendedTradeLineId = trendedtradelineid; - - this.CreditProfileId = creditprofileid; - - if (creditprofile == null) throw new ArgumentNullException(nameof(creditprofile)); - this.CreditProfile = creditprofile; - creditprofile.TrendedTradeLines.Add(this); - - TrendedTrades = new System.Collections.Generic.HashSet(); - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for CreditProfiles.TrendedTradeLines <--> TrendedTradeLines.CreditProfile. - /// - public static TrendedTradeLines Create(Guid trendedtradelineid, Guid creditprofileid, global::Credit.API.Domain_RE.Models_RE.CreditProfiles creditprofile) - { - return new TrendedTradeLines(trendedtradelineid, creditprofileid, creditprofile); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string AccountNumber { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string AccountType { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Amount1 { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Amount1Qualifier { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string Amount2 { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Amount2Qualifier { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string AmountBalloonPayment { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string AmountPastDue { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string BalanceAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string BalanceDate { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string BankruptcyChapterNumber { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string ConsumerComment { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string ConsumerDisputeFlag { get; set; } - - /// - /// Indexed, Required - /// Foreign key for CreditProfiles.TrendedTradeLines <--> TrendedTradeLines.CreditProfile. - /// - [Required] - [System.ComponentModel.Description("Foreign key for CreditProfiles.TrendedTradeLines <--> TrendedTradeLines.CreditProfile. ")] - public Guid CreditProfileId { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string DatePaymentDue { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Delinquencies30Days { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Delinquencies60Days { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Delinquencies90To180Days { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string DerogCounter { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Ecoa { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Evaluation { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string Kob { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string LastPaymentDate { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string MaxDelinquencyDate { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string MonthlyPaymentAmount { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string MonthlyPaymentType { get; set; } - - /// - /// Max length = 4 - /// - [MaxLength(4)] - [StringLength(4)] - public string MonthsHistory { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string OpenDate { get; set; } - - /// - /// Max length = 1 - /// - [MaxLength(1)] - [StringLength(1)] - public string OpenOrClosed { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string OriginalCreditorName { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string PaymentHistory { get; set; } - - /// - /// Max length = 1 - /// - [MaxLength(1)] - [StringLength(1)] - public string RevolvingOrInstallment { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string SoldToName { get; set; } - - /// - /// Max length = 500 - /// - [MaxLength(500)] - [StringLength(500)] - public string SpecialComment { get; set; } - - /// - /// Max length = 3 - /// - [MaxLength(3)] - [StringLength(3)] - public string Status { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string StatusDate { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string SubscriberCode { get; set; } - - /// - /// Max length = 50 - /// - [MaxLength(50)] - [StringLength(50)] - public string SubscriberName { get; set; } - - /// - /// Max length = 5 - /// - [MaxLength(5)] - [StringLength(5)] - public string Terms { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid TrendedTradeLineId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.EnhancedPaymentDatas EnhancedPaymentDatas { get; set; } - - public virtual ICollection TrendedTrades { get; private set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTrades.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTrades.generated.cs deleted file mode 100644 index ba6c6da..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/TrendedTrades.generated.cs +++ /dev/null @@ -1,149 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class TrendedTrades - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected TrendedTrades() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static TrendedTrades CreateTrendedTradesUnsafe() - { - return new TrendedTrades(); - } - - /// - /// Public constructor with required data - /// - /// - /// Foreign key for TrendedTradeLines.TrendedTrades <--> TrendedTrades.TrendedTradeLine. - /// - public TrendedTrades(Guid trendedtradesid, Guid trendedtradelineid, global::Credit.API.Domain_RE.Models_RE.TrendedTradeLines trendedtradeline) - { - this.TrendedTradesId = trendedtradesid; - - this.TrendedTradeLineId = trendedtradelineid; - - if (trendedtradeline == null) throw new ArgumentNullException(nameof(trendedtradeline)); - this.TrendedTradeLine = trendedtradeline; - trendedtradeline.TrendedTrades.Add(this); - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// Foreign key for TrendedTradeLines.TrendedTrades <--> TrendedTrades.TrendedTradeLine. - /// - public static TrendedTrades Create(Guid trendedtradesid, Guid trendedtradelineid, global::Credit.API.Domain_RE.Models_RE.TrendedTradeLines trendedtradeline) - { - return new TrendedTrades(trendedtradesid, trendedtradelineid, trendedtradeline); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string ActualPaymentAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string BalanceAmount { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string LastPaymentDate { get; set; } - - /// - /// Max length = 2 - /// - [MaxLength(2)] - [StringLength(2)] - public string MonthNumber { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string OriginalLoanAmountOrLimit { get; set; } - - /// - /// Max length = 10 - /// - [MaxLength(10)] - [StringLength(10)] - public string ScheduledPaymentAmount { get; set; } - - /// - /// Indexed, Required - /// Foreign key for TrendedTradeLines.TrendedTrades <--> TrendedTrades.TrendedTradeLine. - /// - [Required] - [System.ComponentModel.Description("Foreign key for TrendedTradeLines.TrendedTrades <--> TrendedTrades.TrendedTradeLine. ")] - public Guid TrendedTradeLineId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid TrendedTradesId { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.TrendedTradeLines TrendedTradeLine { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/UniqueConsumerIdentifiers.generated.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/UniqueConsumerIdentifiers.generated.cs deleted file mode 100644 index b508c68..0000000 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Generated/Entities/UniqueConsumerIdentifiers.generated.cs +++ /dev/null @@ -1,113 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated from a template. -// -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. -// -// Produced by Entity Framework Visual Editor v4.2.3.2 -// Source: https://github.com/msawczyn/EFDesigner -// Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=michaelsawczyn.EFDesigner -// Documentation: https://msawczyn.github.io/EFDesigner/ -// License (MIT): https://github.com/msawczyn/EFDesigner/blob/master/LICENSE -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Credit.API.Domain_RE.Models_RE -{ - public partial class UniqueConsumerIdentifiers - { - partial void Init(); - - /// - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// - protected UniqueConsumerIdentifiers() - { - Init(); - } - - /// - /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. - /// - public static UniqueConsumerIdentifiers CreateUniqueConsumerIdentifiersUnsafe() - { - return new UniqueConsumerIdentifiers(); - } - - /// - /// Public constructor with required data - /// - /// - /// - public UniqueConsumerIdentifiers(Guid uniqueconsumeridentifierid, Guid creditprofileid) - { - this.UniqueConsumerIdentifierId = uniqueconsumeridentifierid; - - this.CreditProfileId = creditprofileid; - - Init(); - } - - /// - /// Static create function (for use in LINQ queries, etc.) - /// - /// - /// - public static UniqueConsumerIdentifiers Create(Guid uniqueconsumeridentifierid, Guid creditprofileid) - { - return new UniqueConsumerIdentifiers(uniqueconsumeridentifierid, creditprofileid); - } - - /************************************************************************* - * Properties - *************************************************************************/ - - /// - /// Indexed, Required - /// - [Required] - public Guid CreditProfileId { get; set; } - - /// - /// Identity, Required - /// - [Key] - [Required] - public Guid UniqueConsumerIdentifierId { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string Value { get; set; } - - /// - /// Max length = 100 - /// - [MaxLength(100)] - [StringLength(100)] - public string VerificationIndicator { get; set; } - - /************************************************************************* - * Navigation properties - *************************************************************************/ - - /// - /// Required - /// - public virtual global::Credit.API.Domain_RE.Models_RE.CreditProfiles CreditProfile { get; set; } - - } -} - diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.Designer.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.Designer.cs new file mode 100644 index 0000000..f698781 --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.Designer.cs @@ -0,0 +1,83 @@ +// +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Sandbox_EFCore_Test; + +#nullable disable + +namespace Sandbox_EFCore_Test.Migrations +{ + [DbContext(typeof(EFModel1))] + [Migration("20230330175006_Initial")] + partial class Initial + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasDefaultSchema("dbo") + .HasAnnotation("ProductVersion", "7.0.4") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("Sandbox_EFCore_Test.BaseType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.HasKey("Id"); + + b.ToTable("BaseTypes", "dbo"); + + b.UseTptMappingStrategy(); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity1", b => + { + b.HasBaseType("Sandbox_EFCore_Test.BaseType"); + + b.Property("Property1") + .HasColumnType("nvarchar(max)"); + + b.ToTable("Entity1", "dbo"); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity2", b => + { + b.HasBaseType("Sandbox_EFCore_Test.BaseType"); + + b.Property("Property2") + .HasColumnType("nvarchar(max)"); + + b.ToTable("Entity2", "dbo"); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity1", b => + { + b.HasOne("Sandbox_EFCore_Test.BaseType", null) + .WithOne() + .HasForeignKey("Sandbox_EFCore_Test.Entity1", "Id") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity2", b => + { + b.HasOne("Sandbox_EFCore_Test.BaseType", null) + .WithOne() + .HasForeignKey("Sandbox_EFCore_Test.Entity2", "Id") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.cs new file mode 100644 index 0000000..4657316 --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/20230330175006_Initial.cs @@ -0,0 +1,86 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Sandbox_EFCore_Test.Migrations +{ + /// + public partial class Initial : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.EnsureSchema( + name: "dbo"); + + migrationBuilder.CreateTable( + name: "BaseTypes", + schema: "dbo", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1") + }, + constraints: table => + { + table.PrimaryKey("PK_BaseTypes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Entity1", + schema: "dbo", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false), + Property1 = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Entity1", x => x.Id); + table.ForeignKey( + name: "FK_Entity1_BaseTypes_Id", + column: x => x.Id, + principalSchema: "dbo", + principalTable: "BaseTypes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Entity2", + schema: "dbo", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false), + Property2 = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Entity2", x => x.Id); + table.ForeignKey( + name: "FK_Entity2_BaseTypes_Id", + column: x => x.Id, + principalSchema: "dbo", + principalTable: "BaseTypes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Entity1", + schema: "dbo"); + + migrationBuilder.DropTable( + name: "Entity2", + schema: "dbo"); + + migrationBuilder.DropTable( + name: "BaseTypes", + schema: "dbo"); + } + } +} diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/EFModel1ModelSnapshot.cs b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/EFModel1ModelSnapshot.cs new file mode 100644 index 0000000..da7e9a2 --- /dev/null +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Migrations/EFModel1ModelSnapshot.cs @@ -0,0 +1,80 @@ +// +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Sandbox_EFCore_Test; + +#nullable disable + +namespace Sandbox_EFCore_Test.Migrations +{ + [DbContext(typeof(EFModel1))] + partial class EFModel1ModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasDefaultSchema("dbo") + .HasAnnotation("ProductVersion", "7.0.4") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("Sandbox_EFCore_Test.BaseType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.HasKey("Id"); + + b.ToTable("BaseTypes", "dbo"); + + b.UseTptMappingStrategy(); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity1", b => + { + b.HasBaseType("Sandbox_EFCore_Test.BaseType"); + + b.Property("Property1") + .HasColumnType("nvarchar(max)"); + + b.ToTable("Entity1", "dbo"); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity2", b => + { + b.HasBaseType("Sandbox_EFCore_Test.BaseType"); + + b.Property("Property2") + .HasColumnType("nvarchar(max)"); + + b.ToTable("Entity2", "dbo"); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity1", b => + { + b.HasOne("Sandbox_EFCore_Test.BaseType", null) + .WithOne() + .HasForeignKey("Sandbox_EFCore_Test.Entity1", "Id") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Sandbox_EFCore_Test.Entity2", b => + { + b.HasOne("Sandbox_EFCore_Test.BaseType", null) + .WithOne() + .HasForeignKey("Sandbox_EFCore_Test.Entity2", "Id") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Sandbox_EFCore5Net5_Test.csproj b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Sandbox_EFCore_Test.csproj similarity index 81% rename from src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Sandbox_EFCore5Net5_Test.csproj rename to src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Sandbox_EFCore_Test.csproj index 8d7cf46..6b32bd8 100644 --- a/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Sandbox_EFCore5Net5_Test.csproj +++ b/src/Testing/Sandbox/Sandbox_EFCore5Net5_Test/Sandbox_EFCore_Test.csproj @@ -1,10 +1,10 @@ - + Exe net6.0 - Sandbox_EFCore5Net5_Test - Sandbox_EFCore5Net5_Test + Sandbox_EFCore_Test + Sandbox_EFCore_Test @@ -14,16 +14,16 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -47,10 +47,6 @@ - - - - TextTemplatingFileGenerator @@ -58,4 +54,8 @@ + + + + diff --git a/src/Testing/Testing.sln b/src/Testing/Testing.sln index 32bce8b..aa9b14a 100644 --- a/src/Testing/Testing.sln +++ b/src/Testing/Testing.sln @@ -59,7 +59,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandbox_EF6_Test", "Sandbox EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EFCore5Net5", "EFCoreV5\EFCore5Net5\EFCore5Net5.csproj", "{B2F26FB8-0492-4117-AC94-9FD640900AFE}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sandbox_EFCore5Net5_Test", "Sandbox\Sandbox_EFCore5Net5_Test\Sandbox_EFCore5Net5_Test.csproj", "{00FCE402-231F-4912-B7D6-8C71EA878B23}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sandbox_EFCore_Test", "Sandbox\Sandbox_EFCore5Net5_Test\Sandbox_EFCore_Test.csproj", "{00FCE402-231F-4912-B7D6-8C71EA878B23}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution