示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOewtbillingcriteria(ref DataRow row, Oewtbillingcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("autoaltwhsecd", entity.autoaltwhsecd);
     row.SetField("fromrcptdt", entity.fromrcptdt);
     row.SetField("torcptdt", entity.torcptdt);
     row.SetField("oestagecd", entity.oestagecd);
     row.SetField("recordlimit", entity.recordlimit);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Oewtbillingcriteria BuildOewtbillingcriteriaFromRow(DataRow row)
        {
            Oewtbillingcriteria entity = new Oewtbillingcriteria();

            entity.whse          = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.autoaltwhsecd = row.IsNull("autoaltwhsecd") ? string.Empty : row.Field <string>("autoaltwhsecd");
            entity.fromrcptdt    = row.Field <DateTime?>("fromrcptdt");
            entity.torcptdt      = row.Field <DateTime?>("torcptdt");
            entity.oestagecd     = row.IsNull("oestagecd") ? string.Empty : row.Field <string>("oestagecd");
            entity.recordlimit   = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }