コード例 #1
0
        /// <summary>
        /// Empty data context is used when the from is loaded without ID (the from is in "insert mode")
        /// </summary>
        public TagDataContext GetEmptyDataContext(out string error)
        {
            TagDataContext dataContext = new TagDataContext();

            error = null;
            dataContext.modelNotifiedForTagMain = new ModelNotifiedForTag();;
            return(dataContext);
        }
コード例 #2
0
        public TagDataContext GetDataContext(int TagID, out string error)
        {
            TagDataContext dataContext = new TagDataContext();

            error = null;
            dataContext.modelNotifiedForTagMain = GetTagByID(TagID, out error);


            return(dataContext);
        }