Ejemplo n.º 1
0
        public static Glsflookupresults BuildGlsflookupresultsFromRow(DataRow row)
        {
            Glsflookupresults entity = new Glsflookupresults();

            entity.designname = row.IsNull("designname") ? string.Empty : row.Field <string>("designname");
            entity.designdesc = row.IsNull("designdesc") ? string.Empty : row.Field <string>("designdesc");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsflookupresults(ref DataRow row, Glsflookupresults entity)
 {
     row.SetField("designname", entity.designname);
     row.SetField("designdesc", entity.designdesc);
     row.SetField("userfield", entity.userfield);
 }