コード例 #1
0
        public static Wtrrarlineaccept BuildWtrrarlineacceptFromRow(DataRow row)
        {
            Wtrrarlineaccept entity = new Wtrrarlineaccept();

            entity.rowidWteral = row.Field <byte[]>("rowid-wteral").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 UpdateRowFromWtrrarlineaccept(ref DataRow row, Wtrrarlineaccept entity)
 {
     row.SetField("rowid-wteral", entity.rowidWteral.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }