Example #1
0
            public TblPers(PersDto persDto, string primaryKey)
            {
                var properties = typeof(PersDto).GetProperties();

                PrimaryKey = primaryKey;
                GetColumnData(properties, persDto);
            }
Example #2
0
        public PersDto EntityUser(int primaryKeyValue)
        {
            var     dt      = GetEntity(primaryKeyValue);
            PersDto persDto = DataTableHelper.ConvertDataTableToObject <PersDto>(dt);

            return(persDto);
        }
Example #3
0
        public TblPersDto(PersDto persDtoParam, string primaryKey)
        {
            persDto = persDtoParam;
            var properties = typeof(PersDto).GetProperties();

            GetColumnData(properties, persDtoParam);
        }
Example #4
0
 public PersData(PersDto persDto)
 {
     TableName  = "TblPerson";
     PrimaryKey = "PersonID";
     tblPers    = new TblPers(persDto, PrimaryKey);
 }