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

            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.parameterId = row.IsNull("parameter_id") ? 0 : row.Field <int>("parameter_id");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }