示例#1
0
        public static OptOutType Build(DataRow row)
        {
            OptOutType ooType = new OptOutType();

            ooType.ProtocolId   = int.Parse(row["ProtocolId"].ToString());
            ooType.ProtocolName = row["ProtocolName"].ToString();

            return(ooType);
        }
示例#2
0
        public static OptOutType Build(ITypeReader reader)
        {
            OptOutType ooType = new OptOutType();

            ooType.ProtocolId   = reader.GetInt("ProtocolId");
            ooType.ProtocolName = reader.GetString("ProtocolName");

            return(ooType);
        }