コード例 #1
0
        public BusinessBase(ContextProvider contextProvider, string objectName = "", int dbNumber = 0)
        {
            if (objectName == "")
            {
                objectName = this.ToString().Split('.').Last();
            }

            this.businessProvider = contextProvider.BusinessProvider;
            this.contextProvider  = contextProvider;
            decorator             = businessProvider.GetDecorator(contextProvider, objectName, dbNumber);
            dataItem = Decorator.New(this);
        }
コード例 #2
0
 public BusinessBase(BusinessBaseProvider businessProvider, bool noDB)
 {
     this.businessProvider = businessProvider;
     decorator             = businessProvider.GetDecorator(null, this.ToString().Split('.').Last(), 0);
     dataItem = Decorator.New(this);
 }
コード例 #3
0
 public FilterBase(ContextProvider contextProvider, BusinessBaseDecorator decorator, int dbNumber = 0)
 {
     ContextProvider = contextProvider;
     Decorator       = decorator;
 }