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

            entity.apeiRowid = row.Field <byte[]>("apei-rowid").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 UpdateRowFromApeiinvdetdelete(ref DataRow row, Apeiinvdetdelete entity)
 {
     row.SetField("apei-rowid", entity.apeiRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }