Пример #1
0
        public static Pdscmranksresults BuildPdscmranksresultsFromRow(DataRow row)
        {
            Pdscmranksresults entity = new Pdscmranksresults();

            entity.ranktype = row.IsNull("ranktype") ? string.Empty : row.Field <string>("ranktype");
            entity.rankcnt  = row.IsNull("rankcnt") ? 0 : row.Field <int>("rankcnt");
            return(entity);
        }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdscmranksresults(ref DataRow row, Pdscmranksresults entity)
 {
     row.SetField("ranktype", entity.ranktype);
     row.SetField("rankcnt", entity.rankcnt);
 }