Example #1
0
        public static Gletgrpcriteria BuildGletgrpcriteriaFromRow(DataRow row)
        {
            Gletgrpcriteria entity = new Gletgrpcriteria();

            entity.grpname   = row.IsNull("grpname") ? string.Empty : row.Field <string>("grpname");
            entity.lClear    = row.Field <bool>("lClear");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGletgrpcriteria(ref DataRow row, Gletgrpcriteria entity)
 {
     row.SetField("grpname", entity.grpname);
     row.SetField("lClear", entity.lClear);
     row.SetField("userfield", entity.userfield);
 }