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