示例#1
0
        public static Glsbdivcreate BuildGlsbdivcreateFromRow(DataRow row)
        {
            Glsbdivcreate entity = new Glsbdivcreate();

            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 UpdateRowFromGlsbdivcreate(ref DataRow row, Glsbdivcreate entity)
 {
     row.SetField("rowid-glsb", entity.rowidGlsb.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }