Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEmpmstcopycriteria(ref DataRow row, Empmstcopycriteria entity)
 {
     row.SetField("coNumFrom", entity.coNumFrom);
     row.SetField("whNumFrom", entity.whNumFrom);
     row.SetField("empNumFrom", entity.empNumFrom);
     row.SetField("empNumTo", entity.empNumTo);
     row.SetField("empNumPasswordTo", entity.empNumPasswordTo);
     row.SetField("empmstcopyuserfield", entity.empmstcopyuserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Empmstcopycriteria BuildEmpmstcopycriteriaFromRow(DataRow row)
        {
            Empmstcopycriteria entity = new Empmstcopycriteria();

            entity.coNumFrom           = row.IsNull("coNumFrom") ? string.Empty : row.Field <string>("coNumFrom");
            entity.whNumFrom           = row.IsNull("whNumFrom") ? string.Empty : row.Field <string>("whNumFrom");
            entity.empNumFrom          = row.IsNull("empNumFrom") ? string.Empty : row.Field <string>("empNumFrom");
            entity.empNumTo            = row.IsNull("empNumTo") ? string.Empty : row.Field <string>("empNumTo");
            entity.empNumPasswordTo    = row.IsNull("empNumPasswordTo") ? string.Empty : row.Field <string>("empNumPasswordTo");
            entity.empmstcopyuserfield = row.IsNull("empmstcopyuserfield") ? string.Empty : row.Field <string>("empmstcopyuserfield");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }