/// <summary> /// Initialize the template /// </summary> public override void Initialize() { base.Initialize(); if ((this.Errors.HasErrors == false)) { bool EntityEnumInfoValueAcquired = false; if (this.Session.ContainsKey("EntityEnumInfo")) { this._EntityEnumInfoField = ((global::System.ValueTuple <EFCore.TextTemplating.Addition.EntityEnumInfo, Microsoft.EntityFrameworkCore.Metadata.IProperty>)(this.Session["EntityEnumInfo"])); EntityEnumInfoValueAcquired = true; } if ((EntityEnumInfoValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("EntityEnumInfo"); if ((data != null)) { this._EntityEnumInfoField = ((global::System.ValueTuple <EFCore.TextTemplating.Addition.EntityEnumInfo, Microsoft.EntityFrameworkCore.Metadata.IProperty>)(data)); } } bool ModelNamespaceValueAcquired = false; if (this.Session.ContainsKey("ModelNamespace")) { this._ModelNamespaceField = ((string)(this.Session["ModelNamespace"])); ModelNamespaceValueAcquired = true; } if ((ModelNamespaceValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ModelNamespace"); if ((data != null)) { this._ModelNamespaceField = ((string)(data)); } } bool CodeValueAcquired = false; if (this.Session.ContainsKey("Code")) { this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(this.Session["Code"])); CodeValueAcquired = true; } if ((CodeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Code"); if ((data != null)) { this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(data)); } } } }
/// <summary> /// Initialize the template /// </summary> public override void Initialize() { base.Initialize(); if ((this.Errors.HasErrors == false)) { bool EntityTypeValueAcquired = false; if (this.Session.ContainsKey("EntityType")) { this._EntityTypeField = ((global::Microsoft.EntityFrameworkCore.Metadata.IEntityType)(this.Session["EntityType"])); EntityTypeValueAcquired = true; } if ((EntityTypeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("EntityType"); if ((data != null)) { this._EntityTypeField = ((global::Microsoft.EntityFrameworkCore.Metadata.IEntityType)(data)); } } bool ModelNamespaceValueAcquired = false; if (this.Session.ContainsKey("ModelNamespace")) { this._ModelNamespaceField = ((string)(this.Session["ModelNamespace"])); ModelNamespaceValueAcquired = true; } if ((ModelNamespaceValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ModelNamespace"); if ((data != null)) { this._ModelNamespaceField = ((string)(data)); } } bool NamespaceValueAcquired = false; if (this.Session.ContainsKey("Namespace")) { this._NamespaceField = ((string)(this.Session["Namespace"])); NamespaceValueAcquired = true; } if ((NamespaceValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Namespace"); if ((data != null)) { this._NamespaceField = ((string)(data)); } } bool UseDataAnnotationsValueAcquired = false; if (this.Session.ContainsKey("UseDataAnnotations")) { this._UseDataAnnotationsField = ((bool)(this.Session["UseDataAnnotations"])); UseDataAnnotationsValueAcquired = true; } if ((UseDataAnnotationsValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("UseDataAnnotations"); if ((data != null)) { this._UseDataAnnotationsField = ((bool)(data)); } } bool CodeValueAcquired = false; if (this.Session.ContainsKey("Code")) { this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(this.Session["Code"])); CodeValueAcquired = true; } if ((CodeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Code"); if ((data != null)) { this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(data)); } } bool AnnotationCodeValueAcquired = false; if (this.Session.ContainsKey("AnnotationCode")) { this._AnnotationCodeField = ((global::Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator)(this.Session["AnnotationCode"])); AnnotationCodeValueAcquired = true; } if ((AnnotationCodeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("AnnotationCode"); if ((data != null)) { this._AnnotationCodeField = ((global::Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator)(data)); } } } }
/// <summary> /// Initialize the template /// </summary> public override void Initialize() { base.Initialize(); if ((this.Errors.HasErrors == false)) { bool ModelValueAcquired = false; if (this.Session.ContainsKey("Model")) { this._ModelField = ((global::Microsoft.EntityFrameworkCore.Metadata.IModel)(this.Session["Model"])); ModelValueAcquired = true; } if ((ModelValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Model"); if ((data != null)) { this._ModelField = ((global::Microsoft.EntityFrameworkCore.Metadata.IModel)(data)); } } bool ContextNamespaceValueAcquired = false; if (this.Session.ContainsKey("ContextNamespace")) { this._ContextNamespaceField = ((string)(this.Session["ContextNamespace"])); ContextNamespaceValueAcquired = true; } if ((ContextNamespaceValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ContextNamespace"); if ((data != null)) { this._ContextNamespaceField = ((string)(data)); } } bool ModelNamespaceValueAcquired = false; if (this.Session.ContainsKey("ModelNamespace")) { this._ModelNamespaceField = ((string)(this.Session["ModelNamespace"])); ModelNamespaceValueAcquired = true; } if ((ModelNamespaceValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ModelNamespace"); if ((data != null)) { this._ModelNamespaceField = ((string)(data)); } } bool ContextNameValueAcquired = false; if (this.Session.ContainsKey("ContextName")) { this._ContextNameField = ((string)(this.Session["ContextName"])); ContextNameValueAcquired = true; } if ((ContextNameValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ContextName"); if ((data != null)) { this._ContextNameField = ((string)(data)); } } bool ConnectionStringValueAcquired = false; if (this.Session.ContainsKey("ConnectionString")) { this._ConnectionStringField = ((string)(this.Session["ConnectionString"])); ConnectionStringValueAcquired = true; } if ((ConnectionStringValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionString"); if ((data != null)) { this._ConnectionStringField = ((string)(data)); } } bool SuppressConnectionStringWarningValueAcquired = false; if (this.Session.ContainsKey("SuppressConnectionStringWarning")) { this._SuppressConnectionStringWarningField = ((bool)(this.Session["SuppressConnectionStringWarning"])); SuppressConnectionStringWarningValueAcquired = true; } if ((SuppressConnectionStringWarningValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("SuppressConnectionStringWarning"); if ((data != null)) { this._SuppressConnectionStringWarningField = ((bool)(data)); } } bool UseDataAnnotationsValueAcquired = false; if (this.Session.ContainsKey("UseDataAnnotations")) { this._UseDataAnnotationsField = ((bool)(this.Session["UseDataAnnotations"])); UseDataAnnotationsValueAcquired = true; } if ((UseDataAnnotationsValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("UseDataAnnotations"); if ((data != null)) { this._UseDataAnnotationsField = ((bool)(data)); } } bool CodeValueAcquired = false; if (this.Session.ContainsKey("Code")) { this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(this.Session["Code"])); CodeValueAcquired = true; } if ((CodeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Code"); if ((data != null)) { this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(data)); } } bool ProviderCodeValueAcquired = false; if (this.Session.ContainsKey("ProviderCode")) { this._ProviderCodeField = ((global::Microsoft.EntityFrameworkCore.Scaffolding.IProviderConfigurationCodeGenerator)(this.Session["ProviderCode"])); ProviderCodeValueAcquired = true; } if ((ProviderCodeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ProviderCode"); if ((data != null)) { this._ProviderCodeField = ((global::Microsoft.EntityFrameworkCore.Scaffolding.IProviderConfigurationCodeGenerator)(data)); } } bool AnnotationCodeValueAcquired = false; if (this.Session.ContainsKey("AnnotationCode")) { this._AnnotationCodeField = ((global::Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator)(this.Session["AnnotationCode"])); AnnotationCodeValueAcquired = true; } if ((AnnotationCodeValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("AnnotationCode"); if ((data != null)) { this._AnnotationCodeField = ((global::Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator)(data)); } } bool ConfigurationContextFolderValueAcquired = false; if (this.Session.ContainsKey("ConfigurationContextFolder")) { this._ConfigurationContextFolderField = ((string)(this.Session["ConfigurationContextFolder"])); ConfigurationContextFolderValueAcquired = true; } if ((ConfigurationContextFolderValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConfigurationContextFolder"); if ((data != null)) { this._ConfigurationContextFolderField = ((string)(data)); } } bool GetEntityNameValueAcquired = false; if (this.Session.ContainsKey("GetEntityName")) { this._GetEntityNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(this.Session["GetEntityName"])); GetEntityNameValueAcquired = true; } if ((GetEntityNameValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetEntityName"); if ((data != null)) { this._GetEntityNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(data)); } } bool GetEntityClassNameValueAcquired = false; if (this.Session.ContainsKey("GetEntityClassName")) { this._GetEntityClassNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(this.Session["GetEntityClassName"])); GetEntityClassNameValueAcquired = true; } if ((GetEntityClassNameValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetEntityClassName"); if ((data != null)) { this._GetEntityClassNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(data)); } } bool GetEntityConfigurationNameValueAcquired = false; if (this.Session.ContainsKey("GetEntityConfigurationName")) { this._GetEntityConfigurationNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(this.Session["GetEntityConfigurationName"])); GetEntityConfigurationNameValueAcquired = true; } if ((GetEntityConfigurationNameValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetEntityConfigurationName"); if ((data != null)) { this._GetEntityConfigurationNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(data)); } } } }