Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamuimportexcelerrors(ref DataRow row, Icamuimportexcelerrors entity)
 {
     row.SetField("iRow", entity.iRow);
     row.SetField("iCol", entity.iCol);
     row.SetField("cErrorMsg", entity.cErrorMsg);
     row.SetField("cColor", entity.cColor);
     row.SetField("cType", entity.cType);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Icamuimportexcelerrors BuildIcamuimportexcelerrorsFromRow(DataRow row)
        {
            Icamuimportexcelerrors entity = new Icamuimportexcelerrors();

            entity.iRow      = row.IsNull("iRow") ? 0 : row.Field <int>("iRow");
            entity.iCol      = row.IsNull("iCol") ? 0 : row.Field <int>("iCol");
            entity.cErrorMsg = row.IsNull("cErrorMsg") ? string.Empty : row.Field <string>("cErrorMsg");
            entity.cColor    = row.IsNull("cColor") ? string.Empty : row.Field <string>("cColor");
            entity.cType     = row.IsNull("cType") ? string.Empty : row.Field <string>("cType");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }