public override void GetColumnValues(IDataReader reader, lei item) { base.GetColumnValues(reader, item); int ordinaltext = reader.GetOrdinal("text"); item.text = reader.IsDBNull(ordinaltext) ? null : reader.GetString(ordinaltext); /*add customized code between this region*/ /*add customized code between this region*/ }
public override void AddInsertParameters(IContext context, IDbCommand command, lei item) { base.AddInsertParameters(context, command, item); context.AddParameter(command, "text", item.text ?? (object)DBNull.Value); /*add customized code between this region*/ /*add customized code between this region*/ }