예제 #1
0
        protected override void PrepareOperationLog(DEInstenceOperationContext context)
        {
            DEOperationLog log = DEOperationLog.CreateLogFromEnvironment();

            log.ResourceID    = this.Data.ID;
            log.SchemaType    = "DynamiceEntityInstence";
            log.OperationType = this.OperationType;
            log.Category      = this.Data.Name;
            log.Subject       = string.Format("{0}: {1}",
                                              EnumItemDescriptionAttribute.GetDescription(this.OperationType), this.Data.Name);

            log.SearchContent = this.Data.Name;
            context.Logs.Add(log);
        }
예제 #2
0
        protected override void PrepareOperationLog(DESchemaObjectOperationContext context)
        {
            DEOperationLog log = DEOperationLog.CreateLogFromEnvironment();

            log.ResourceID    = this.Data.ID;
            log.SchemaType    = this.Data.SchemaType;
            log.OperationType = this.OperationType;
            log.Category      = this.Data.Schema.Category;
            log.Subject       = string.Format("{0}: {1} 于 {2}",
                                              EnumItemDescriptionAttribute.GetDescription(this.OperationType), this.Data.Name, ((DEBase)this._Container).Name);

            log.SearchContent = this.Data.ToFullTextString() + " " + this._Container.ToFullTextString();

            context.Logs.Add(log);
        }