예제 #1
0
        public static Glsfsetupresults BuildGlsfsetupresultsFromRow(DataRow row)
        {
            Glsfsetupresults entity = new Glsfsetupresults();

            entity.comment   = row.IsNull("comment") ? string.Empty : row.Field <string>("comment");
            entity.recInfo   = row.IsNull("recInfo") ? string.Empty : row.Field <string>("recInfo");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupresults(ref DataRow row, Glsfsetupresults entity)
 {
     row.SetField("comment", entity.comment);
     row.SetField("recInfo", entity.recInfo);
     row.SetField("userfield", entity.userfield);
 }