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

            entity.rowidGlet = row.Field <byte[]>("rowid-glet").ToStringEncoded();
            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 UpdateRowFromGliatransrevcriteria(ref DataRow row, Gliatransrevcriteria entity)
 {
     row.SetField("rowid-glet", entity.rowidGlet.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }