Пример #1
0
        public static Icprodlistaddprod BuildIcprodlistaddprodFromRow(DataRow row)
        {
            Icprodlistaddprod entity = new Icprodlistaddprod();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            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 UpdateRowFromIcprodlistaddprod(ref DataRow row, Icprodlistaddprod entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }