public void Apply(IClassInstance instance) { instance.Schema(""); var tableName = NormaliseName(instance.TableName); instance.Table(tableName); }
/// <summary> /// Applies the schema name for the module. /// </summary> /// <param name="instance">The instance.</param> public void Apply( IClassInstance instance ) { //Derive Schema var type = instance.EntityType; var moduleName = GetModuleName ( type ); instance.Schema ( moduleName ); }
/// <summary> /// Applies the schema name for the module. /// </summary> /// <param name="instance">The instance.</param> public void Apply(IClassInstance instance) { //Derive Schema var type = instance.EntityType; var moduleName = GetModuleName(type); instance.Schema(moduleName); }
public void Apply(IClassInstance instance) { instance.Table($"[{GetTableName(instance.EntityType)}]"); var schema = GetSchemaName(instance.EntityType, GetEntityAttribute(instance.EntityType)); if (!string.IsNullOrEmpty(schema)) { instance.Schema(schema); } }
/// <summary> /// Applies the schema name for the module. /// </summary> /// <param name="instance">The instance.</param> public void Apply(IClassInstance instance) { var type = instance.EntityType; var moduleName = GetModuleName(type).ToLower(); if (!string.IsNullOrWhiteSpace(moduleName)) { instance.Schema(moduleName); } }
public void Apply(IClassInstance instance) { var attribute = GetAttribute(instance.EntityType); if (attribute == null) { return; } instance.Table(attribute.TableName); if (!String.IsNullOrEmpty(attribute.Schema)) { instance.Schema(attribute.Schema); } }
public void Apply(IClassInstance instance) { instance.Schema(Schema); instance.Table(instance.EntityType.Name + ConventionConstants.TableSuffix); }
public void Apply(IClassInstance instance) { instance.Schema(""); var tableName = NormaliseName(instance.TableName); instance.Table(tableName); }
public void Apply(IClassInstance instance) { instance.Cache.ReadWrite(); instance.Schema("voter"); instance.Table(instance.EntityType.Name + "s"); }
public void Apply(IClassInstance instance) { instance.Schema(Schema); instance.Table(instance.EntityType.Name + ConventionConstants.TableSuffix); }
public void Apply(IClassInstance instance) { instance.Schema("dbo"); }
public void Apply(IClassInstance instance) { instance.Cache.ReadWrite(); instance.Schema("dbo"); instance.Table(instance.EntityType.Name + "s"); }
public void Apply(IClassInstance instance) { instance.Table(instance.EntityType.Name); instance.Schema("dbo"); }
public void Apply(IClassInstance instance) { instance.Schema("dbo"); }