Exemple #1
0
        public void UpdateDatabase()
        {
            if (ReadOnly)
            {
                throw new ErrorOperationException("当前是只读状态,无法进行数据回写操作", this);
            }

            UpdateUtil.UpdateTableResolvers(Context, null, this);
        }
Exemple #2
0
 protected virtual void CommitData()
 {
     if (fNonUIResolvers == null)
     {
         UpdateUtil.UpdateTableResolvers(Context, InternalApplyDatas, MainResolver);
     }
     else
     {
         UpdateUtil.UpdateTableResolvers(Context, InternalApplyDatas, MainResolver,
                                         fNonUIResolvers);
     }
 }
        protected virtual void CommitData()
        {
            var updateResolvers = EnumUtil.Convert(MainResolver, ChildResolvers);

            if (fNonUIResolvers == null)
            {
                UpdateUtil.UpdateTableResolvers(Context, InternalApplyDatas, updateResolvers);
            }
            else
            {
                UpdateUtil.UpdateTableResolvers(Context, InternalApplyDatas,
                                                EnumUtil.Convert(updateResolvers, fNonUIResolvers));
            }
        }