예제 #1
0
        public static Loadpoheaderaddlmisccriteria BuildLoadpoheaderaddlmisccriteriaFromRow(DataRow row)
        {
            Loadpoheaderaddlmisccriteria entity = new Loadpoheaderaddlmisccriteria();

            entity.pono  = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            return(entity);
        }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadpoheaderaddlmisccriteria(ref DataRow row, Loadpoheaderaddlmisccriteria entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
 }