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

            entity.lifocat   = row.IsNull("lifocat") ? string.Empty : row.Field <string>("lifocat");
            entity.yr        = row.IsNull("yr") ? 0 : row.Field <int>("yr");
            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 UpdateRowFromIcsevloadttcriteria(ref DataRow row, Icsevloadttcriteria entity)
 {
     row.SetField("lifocat", entity.lifocat);
     row.SetField("yr", entity.yr);
     row.SetField("userfield", entity.userfield);
 }