Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCrtbundleidrcdshdrresults(ref DataRow row, Crtbundleidrcdshdrresults entity)
 {
     row.SetField("bundleid", entity.bundleid);
     row.SetField("dispbundleid", entity.dispbundleid);
     row.SetField("totbf", entity.totbf);
     row.SetField("totlf", entity.totlf);
 }
Esempio n. 2
0
        public static Crtbundleidrcdshdrresults BuildCrtbundleidrcdshdrresultsFromRow(DataRow row)
        {
            Crtbundleidrcdshdrresults entity = new Crtbundleidrcdshdrresults();

            entity.bundleid     = row.IsNull("bundleid") ? string.Empty : row.Field <string>("bundleid");
            entity.dispbundleid = row.IsNull("dispbundleid") ? string.Empty : row.Field <string>("dispbundleid");
            entity.totbf        = row.IsNull("totbf") ? decimal.Zero : row.Field <decimal>("totbf");
            entity.totlf        = row.IsNull("totlf") ? decimal.Zero : row.Field <decimal>("totlf");
            return(entity);
        }