Exemplo n.º 1
0
        public static IdentityChangeOperationWrapper ChangeIdentity(
            this DbMigration migration,
            IdentityChange change,
            string principalTable,
            string principalColumn)
        {
            var operation = new ChangeIdentityOperation
            {
                Change           = change,
                PrincipalTable   = principalTable,
                PrincipalColumn  = principalColumn,
                DependentColumns = new List <DependentColumn>()
            };

            ((IDbMigration)migration).AddOperation(operation);

            return(new IdentityChangeOperationWrapper(operation));
        }
Exemplo n.º 2
0
 public IdentityChangeOperationWrapper(ChangeIdentityOperation operation)
 {
     _operation = operation;
 }