public void Apply(IClassInstance instance)
        {
            instance.Schema("");
            var tableName = NormaliseName(instance.TableName);

            instance.Table(tableName);
        }
Beispiel #2
0
        /// <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 );
        }
Beispiel #3
0
        /// <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);
            }
        }
Beispiel #6
0
        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);
            }
        }
Beispiel #7
0
 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);
 }
Beispiel #9
0
 public void Apply(IClassInstance instance)
 {
     instance.Cache.ReadWrite();
     instance.Schema("voter");
     instance.Table(instance.EntityType.Name + "s");
 }
Beispiel #10
0
 public void Apply(IClassInstance instance)
 {
     instance.Schema(Schema);
     instance.Table(instance.EntityType.Name + ConventionConstants.TableSuffix);
 }
Beispiel #11
0
		public void Apply(IClassInstance instance)
		{
			instance.Schema("dbo");
		}
Beispiel #12
0
 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");
 }
Beispiel #14
0
 public void Apply(IClassInstance instance)
 {
     instance.Schema("dbo");
 }