Пример #1
0
        public static Pderclaimtotalcriteria BuildPderclaimtotalcriteriaFromRow(DataRow row)
        {
            Pderclaimtotalcriteria entity = new Pderclaimtotalcriteria();

            entity.claimno   = row.IsNull("claimno") ? 0 : row.Field <int>("claimno");
            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 UpdateRowFromPderclaimtotalcriteria(ref DataRow row, Pderclaimtotalcriteria entity)
 {
     row.SetField("claimno", entity.claimno);
     row.SetField("userfield", entity.userfield);
 }