public static OptOutType Build(DataRow row) { OptOutType ooType = new OptOutType(); ooType.ProtocolId = int.Parse(row["ProtocolId"].ToString()); ooType.ProtocolName = row["ProtocolName"].ToString(); return(ooType); }
public static OptOutType Build(ITypeReader reader) { OptOutType ooType = new OptOutType(); ooType.ProtocolId = reader.GetInt("ProtocolId"); ooType.ProtocolName = reader.GetString("ProtocolName"); return(ooType); }