コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAuthpointsecuritycriteria(ref DataRow row, Authpointsecuritycriteria entity)
 {
     row.SetField("oper2", entity.oper2);
     row.SetField("functionname", entity.functionname);
     row.SetField("sectionname", entity.sectionname);
     row.SetField("pointname", entity.pointname);
     row.SetField("modename", entity.modename);
     row.SetField("transtype", entity.transtype);
     row.SetField("searchcriteria", entity.searchcriteria);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Authpointsecuritycriteria BuildAuthpointsecuritycriteriaFromRow(DataRow row)
        {
            Authpointsecuritycriteria entity = new Authpointsecuritycriteria();

            entity.oper2          = row.IsNull("oper2") ? string.Empty : row.Field <string>("oper2");
            entity.functionname   = row.IsNull("functionname") ? string.Empty : row.Field <string>("functionname");
            entity.sectionname    = row.IsNull("sectionname") ? string.Empty : row.Field <string>("sectionname");
            entity.pointname      = row.IsNull("pointname") ? string.Empty : row.Field <string>("pointname");
            entity.modename       = row.IsNull("modename") ? string.Empty : row.Field <string>("modename");
            entity.transtype      = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.searchcriteria = row.IsNull("searchcriteria") ? 0 : row.Field <int>("searchcriteria");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }