Пример #1
0
        public TagRegistrationDto GetByTagId(int Id)
        {
            TagRegistrationDto result = new TagRegistrationDto();

            MyDataSet ds = new MyDataSet();

            ds.EnforceConstraints = false;

            DbTools.SelectQuery(
                FireBirdConnection.Connection,
                ds.TagRegistration, string.Format(UrgentAppQueries.TAGREGISTRATION_SELECT_BYTAGID, Id));

            result = baseMapper.BindData <TagRegistrationDto>(ds.TagRegistration);

            return(result);
        }
Пример #2
0
        public TagEventTypeDto GetById(int Id)
        {
            MyDataSet ds = new MyDataSet();

            ds.EnforceConstraints = false;

            DbTools.SelectQuery(
                FireBirdConnection.Connection,
                ds.TagEventType, string.Format(UrgentAppQueries.TAGEVENTTYPE_SELECT_BYID, Id));

            TagEventTypeDto result = baseMapper.BindData <TagEventTypeDto>(ds.Patient);

            return(result);
        }