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

            entity.designName       = row.IsNull("designName") ? string.Empty : row.Field <string>("designName");
            entity.recordCountLimit = row.IsNull("recordCountLimit") ? 0 : row.Field <int>("recordCountLimit");
            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 UpdateRowFromGlsfgetdesigncriteria(ref DataRow row, Glsfgetdesigncriteria entity)
 {
     row.SetField("designName", entity.designName);
     row.SetField("recordCountLimit", entity.recordCountLimit);
     row.SetField("userfield", entity.userfield);
 }