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

            entity.prodcat        = row.IsNull("prodcat") ? string.Empty : row.Field <string>("prodcat");
            entity.catalogaddflag = row.Field <bool>("catalogaddflag");
            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 UpdateRowFromCreateprodfromcatresults(ref DataRow row, Createprodfromcatresults entity)
 {
     row.SetField("prodcat", entity.prodcat);
     row.SetField("catalogaddflag", entity.catalogaddflag);
     row.SetField("userfield", entity.userfield);
 }