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

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            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 UpdateRowFromLoadaltvendttcriteria(ref DataRow row, Loadaltvendttcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }