partial void DeleteDataOperation(DataOperation instance);
// Instantiates the given data operation and wraps it in a disposable wrapper object. private static DataOperationWrapper Wrap(DataOperation operation) { try { Assembly assembly = Assembly.LoadFrom(operation.AssemblyName); Type type = assembly.GetType(operation.TypeName); return new DataOperationWrapper(operation.ID, type); } catch (Exception ex) { string message = $"Failed to create data operation of type {operation.TypeName}: {ex.Message}"; throw new TypeLoadException(message, ex); } }
partial void UpdateDataOperation(DataOperation instance);
partial void InsertDataOperation(DataOperation instance);