示例#1
0
 public static Glsbcreateresults BuildGlsbcreateresultsFromRow(DataRow row)
 {
    Glsbcreateresults entity = new Glsbcreateresults();
    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 UpdateRowFromGlsbcreateresults(ref DataRow row, Glsbcreateresults entity)
      {
         row.SetField("rowid-glsb", entity.rowidGlsb.ToByteArray());
         row.SetField("userfield", entity.userfield);

      }