コード例 #1
0
        public static Poblanketlinessingle BuildPoblanketlinessingleFromRow(DataRow row)
        {
            Poblanketlinessingle entity = new Poblanketlinessingle();

            entity.transtype      = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.qtyremainlabel = row.IsNull("qtyremainlabel") ? string.Empty : row.Field <string>("qtyremainlabel");
            entity.qtyordlabel    = row.IsNull("qtyordlabel") ? string.Empty : row.Field <string>("qtyordlabel");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketlinessingle(ref DataRow row, Poblanketlinessingle entity)
 {
     row.SetField("transtype", entity.transtype);
     row.SetField("qtyremainlabel", entity.qtyremainlabel);
     row.SetField("qtyordlabel", entity.qtyordlabel);
 }