Beispiel #1
0
        public static Itembucketdetailcriteria BuildItembucketdetailcriteriaFromRow(DataRow row)
        {
            Itembucketdetailcriteria entity = new Itembucketdetailcriteria();

            entity.rowID = row.Field <byte[]>("rowID").ToStringEncoded();
            entity.itembucketuserfield = row.IsNull("itembucketuserfield") ? string.Empty : row.Field <string>("itembucketuserfield");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromItembucketdetailcriteria(ref DataRow row, Itembucketdetailcriteria entity)
 {
     row.SetField("rowID", entity.rowID.ToByteArray());
     row.SetField("itembucketuserfield", entity.itembucketuserfield);
     row.SetField("userfield", entity.userfield);
 }