示例#1
0
        public void InvokeTablesContentChangedEvent(Authentication authentication, TableContent content, Table[] tables)
        {
            var eventLog = EventLogBuilder.BuildMany(authentication, this, nameof(InvokeTablesContentChangedEvent), tables);
            var comment  = EventMessageBuilder.ChangeTableContent(authentication, tables);

            this.CremaHost.Debug(eventLog);
            this.CremaHost.Info(comment);
            this.OnTablesChanged(new ItemsEventArgs <ITable>(authentication, tables));
            this.Context.InvokeItemsChangedEvent(authentication, tables);
        }
示例#2
0
        public void InvokeTablesContentChangedEvent(Authentication authentication, TableContent content, Table[] tables, CremaDataSet dataSet)
        {
            var eventLog = EventLogBuilder.BuildMany(authentication, this, nameof(InvokeTablesContentChangedEvent), tables);
            var comment  = EventMessageBuilder.ChangeTableContent(authentication, tables);

            this.CremaHost.Debug(eventLog);
            this.Repository.Commit(authentication, comment, eventLog);
            this.CremaHost.Info(comment);
            this.UpdateRevision(authentication, tables, dataSet);
            this.UpdateTableDetailInfo(authentication, tables, dataSet);
            this.OnTablesChanged(new ItemsEventArgs <ITable>(authentication, tables));
            this.Context.InvokeItemsChangedEvent(authentication, tables, dataSet);
        }
示例#3
0
文件: Table.cs 项目: sedrion/Crema
 public Table()
 {
     this.template = new TableTemplate(this);
     this.content  = new TableContent(this);
 }