Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlinquiryrevalsubresults(ref DataRow row, Glinquiryrevalsubresults entity)
 {
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldivnm", entity.gldivnm);
     row.SetField("glno", entity.glno);
     row.SetField("glnm", entity.glnm);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("setno", entity.setno);
     row.SetField("currencyty", entity.currencyty);
     row.SetField("currencynm", entity.currencynm);
     row.SetField("lastupdate", entity.lastupdate);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Glinquiryrevalsubresults BuildGlinquiryrevalsubresultsFromRow(DataRow row)
        {
            Glinquiryrevalsubresults entity = new Glinquiryrevalsubresults();

            entity.gldivno    = row.IsNull("gldivno") ? 0 : row.Field <int>("gldivno");
            entity.gldivnm    = row.IsNull("gldivnm") ? string.Empty : row.Field <string>("gldivnm");
            entity.glno       = row.IsNull("glno") ? string.Empty : row.Field <string>("glno");
            entity.glnm       = row.IsNull("glnm") ? string.Empty : row.Field <string>("glnm");
            entity.jrnlno     = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.setno      = row.IsNull("setno") ? 0 : row.Field <int>("setno");
            entity.currencyty = row.IsNull("currencyty") ? string.Empty : row.Field <string>("currencyty");
            entity.currencynm = row.IsNull("currencynm") ? string.Empty : row.Field <string>("currencynm");
            entity.lastupdate = row.IsNull("lastupdate") ? string.Empty : row.Field <string>("lastupdate");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }