コード例 #1
0
        public static Custpmtsdisplaycriteria BuildCustpmtsdisplaycriteriaFromRow(DataRow row)
        {
            Custpmtsdisplaycriteria entity = new Custpmtsdisplaycriteria();

            entity.custno    = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.groupid   = row.IsNull("groupid") ? string.Empty : row.Field <string>("groupid");
            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 UpdateRowFromCustpmtsdisplaycriteria(ref DataRow row, Custpmtsdisplaycriteria entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("groupid", entity.groupid);
     row.SetField("userfield", entity.userfield);
 }