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

            entity.rowidGlsb = row.Field <byte[]>("rowid-glsb").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 UpdateRowFromGlsbreqinitcriteria(ref DataRow row, Glsbreqinitcriteria entity)
 {
     row.SetField("rowid-glsb", entity.rowidGlsb.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }