public bool CanRender(IMigrationOperation operation)
 {
     if (operation == null)
     {
         return(false);
     }
     return(typeof(TOperation).GetTypeInfo().IsAssignableFrom(operation.GetType()));
 }
 public virtual SqlStatement Render(IMigrationOperation operation)
 {
     return(Render((TOperation)operation));
 }
Example #3
0
 public void AddOperation(IMigrationOperation operation)
 {
     _operations.Add(operation);
 }
Example #4
0
 protected virtual IOperationRenderer FindRenderer(IMigrationOperation migrationOperation)
 {
     return(Renderers.Value.First(x => x.CanRender(migrationOperation)));
 }