Exemplo n.º 1
0
        public static Aricgrpdispcriteria BuildAricgrpdispcriteriaFromRow(DataRow row)
        {
            Aricgrpdispcriteria entity = new Aricgrpdispcriteria();

            entity.groupid   = row.IsNull("groupid") ? string.Empty : row.Field <string>("groupid");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAricgrpdispcriteria(ref DataRow row, Aricgrpdispcriteria entity)
 {
     row.SetField("groupid", entity.groupid);
     row.SetField("userfield", entity.userfield);
 }