示例#1
0
        public void DeleteData(ModelNotifiedForTag modelNotifiedForTag, out string error)
        {
            TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig);
            DeleteTagView  deleteTagView  = new DeleteTagView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(DeleteTagView), deleteTagView);
            TagGenericREST.Delete(deleteTagView, out error);
        }
示例#2
0
        public void DeleteData(ModelNotifiedForTag modelNotifiedForTag, out string error)
        {
            TagBsn  bsn    = new TagBsn(wpfConfig);
            TagInfo dbItem = new TagInfo();

            Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(TagInfo), dbItem);
            bsn.DeleteByID(dbItem, out error);
        }
示例#3
0
        public void AddData(ModelNotifiedForTag modelNotifiedForTag, out string error)
        {
            TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig);
            CreateTagView  createTagView  = new CreateTagView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(CreateTagView), createTagView);
            TagGenericREST.Insert(createTagView, out error);
        }
示例#4
0
        public void SaveData(ModelNotifiedForTag modelNotifiedForTag, out string error)
        {
            TagGenericREST TagGenericREST = new TagGenericREST(wpfConfig);
            UpdateTagView  updateTagView  = new UpdateTagView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(UpdateTagView), updateTagView);
            TagGenericREST.Update(updateTagView, out error);
        }
示例#5
0
        public void AddData(ModelNotifiedForTag modelNotifiedForTag, out string error)
        {
            TagBsn  bsn    = new TagBsn(wpfConfig);
            TagInfo dbItem = new TagInfo();

            Cloner.CopyAllTo(typeof(ModelNotifiedForTag), modelNotifiedForTag, typeof(TagInfo), dbItem);
            bsn.InsertOne(dbItem, out error);
            modelNotifiedForTag.NewItem = false;
            Cloner.CopyAllTo(typeof(TagInfo), dbItem, typeof(ModelNotifiedForTag), modelNotifiedForTag);
        }
示例#6
0
        public ModelNotifiedForTag GetTagByID(int TagID, out string error)
        {
            error = null;
            TagBsn              bsn    = new TagBsn(wpfConfig);
            TagInfo             dbItem = bsn.GetValueByID(TagID);
            ModelNotifiedForTag item   = new ModelNotifiedForTag();

            Cloner.CopyAllTo(typeof(TagInfo), dbItem, typeof(ModelNotifiedForTag), item);
            return(item);
        }
示例#7
0
        public ModelNotifiedForTag GetTagByID(int TagID, out string error)
        {
            error = null;
            TagGenericREST      TagGenericREST      = new TagGenericREST(wpfConfig);
            GetTagView          getTagView          = TagGenericREST.GetByPK <GetTagView>(TagID, out error)[0];
            ModelNotifiedForTag modelNotifiedForTag = new ModelNotifiedForTag();

            Cloner.CopyAllTo(typeof(GetTagView), getTagView, typeof(ModelNotifiedForTag), modelNotifiedForTag);
            return(modelNotifiedForTag);
        }