コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDeletemultilocbinscriteria(ref DataRow row, Deletemultilocbinscriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("reportName", entity.reportName);
     row.SetField("binLoc", entity.binLoc);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Deletemultilocbinscriteria BuildDeletemultilocbinscriteriaFromRow(DataRow row)
        {
            Deletemultilocbinscriteria entity = new Deletemultilocbinscriteria();

            entity.coNum      = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum      = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.reportName = row.IsNull("reportName") ? string.Empty : row.Field <string>("reportName");
            entity.binLoc     = row.IsNull("binLoc") ? string.Empty : row.Field <string>("binLoc");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }