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

            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);
        }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfrenumberdesigncriteria(ref DataRow row, Glsfrenumberdesigncriteria entity)
 {
     row.SetField("designname", entity.designname);
     row.SetField("designdesc", entity.designdesc);
     row.SetField("userfield", entity.userfield);
 }