コード例 #1
0
        protected override void Generate(System.Data.Entity.Migrations.Model.AddColumnOperation addColumnOperation)
        {
            string newTableName          = _GetNameWithReplacedSchema(addColumnOperation.Table);
            var    newAddColumnOperation = new System.Data.Entity.Migrations.Model.AddColumnOperation(newTableName, addColumnOperation.Column, addColumnOperation.AnonymousArguments);

            base.Generate(newAddColumnOperation);
        }
コード例 #2
0
 /// <summary>
 /// Generates code to perform an <see cref="T:System.Data.Entity.Migrations.Model.AddColumnOperation" />.
 /// </summary>
 /// <param name="addColumnOperation">The operation to generate code for.</param>
 /// <param name="writer">Text writer to add the generated code to.</param>
 protected override void Generate(System.Data.Entity.Migrations.Model.AddColumnOperation addColumnOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer)
 {
     base.Generate(addColumnOperation, writer);
     GenerateCustomColumnCode(writer, addColumnOperation.Table, addColumnOperation.Column.Name);
 }