Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCrtbundleidrcdsdtlresults(ref DataRow row, Crtbundleidrcdsdtlresults entity)
 {
     row.SetField("bundleid", entity.bundleid);
     row.SetField("comprod", entity.comprod);
     row.SetField("clength", entity.clength);
     row.SetField("qtyord", entity.qtyord);
 }
Beispiel #2
0
        public static Crtbundleidrcdsdtlresults BuildCrtbundleidrcdsdtlresultsFromRow(DataRow row)
        {
            Crtbundleidrcdsdtlresults entity = new Crtbundleidrcdsdtlresults();

            entity.bundleid = row.IsNull("bundleid") ? string.Empty : row.Field <string>("bundleid");
            entity.comprod  = row.IsNull("comprod") ? string.Empty : row.Field <string>("comprod");
            entity.clength  = row.IsNull("clength") ? string.Empty : row.Field <string>("clength");
            entity.qtyord   = row.IsNull("qtyord") ? decimal.Zero : row.Field <decimal>("qtyord");
            return(entity);
        }