⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataaccessbak.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
namespace PowerEasy.DalFactory
{
    using PowerEasy.IDal.AccessManage;
    using PowerEasy.IDal.Accessories;
    using PowerEasy.IDal.AD;
    using PowerEasy.IDal.Analytics;
    using PowerEasy.IDal.Collection;
    using PowerEasy.IDal.CommonModel;
    using PowerEasy.IDal.Contents;
    using PowerEasy.IDal.Crm;
    using PowerEasy.IDal.Shop;
    using PowerEasy.IDal.Survey;
    using PowerEasy.IDal.TemplateProc;
    using PowerEasy.IDal.Templates;
    using PowerEasy.IDal.UserManage;
    using PowerEasy.IDal.WorkFlow;
    using System;
    using System.Reflection;

    public sealed class DataAccessBak
    {
        private static readonly string path = WebConfigurationManager.AppSettings["WebDAL"];

        private DataAccessBak()
        {
        }

        public static IAddress CreateAddress()
        {
            string typeName = path + ".Crm.Address";
            return (IAddress) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IAdministrator CreateAdmin()
        {
            string typeName = path + ".UserManage.Administrators";
            return (IAdministrator) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IAdminProfile CreateAdminProfile()
        {
            string typeName = path + ".UserManage.AdminProfile";
            return (IAdminProfile) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IAdvertisement CreateAdvertisement()
        {
            string typeName = path + ".AD.Advertisement";
            return (IAdvertisement) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IADZone CreateAdZone()
        {
            string typeName = path + ".AD.ADZone";
            return (IADZone) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IAgent CreateAgentPayment()
        {
            string typeName = path + ".Shop.Agent";
            return (IAgent) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IAuthor CreateAuthorInfo()
        {
            string typeName = path + ".Accessories.Author";
            return (IAuthor) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IBank CreateBank()
        {
            string typeName = path + ".Accessories.Bank";
            return (IBank) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IBankrollItem CreateBankrollItem()
        {
            string typeName = path + ".Accessories.BankrollItem";
            return (IBankrollItem) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICards CreateCards()
        {
            string typeName = path + ".Accessories.Cards";
            return (ICards) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IChoiceset CreateChoiceset()
        {
            string typeName = path + ".Accessories.Choiceset";
            return (IChoiceset) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IClient CreateClient()
        {
            string typeName = path + ".Crm.Client";
            return (IClient) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IClientDelete CreateClientDelete()
        {
            string typeName = path + ".Crm.ClientDelete";
            return (IClientDelete) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICollectionFieldRules CreateCollectionFieldRules()
        {
            string typeName = path + ".Collection.CollectionFieldRules";
            return (ICollectionFieldRules) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICollectionFilterRules CreateCollectionFilterRules()
        {
            string typeName = path + ".Collection.CollectionFilterRules";
            return (ICollectionFilterRules) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICollectionHistory CreateCollectionHistory()
        {
            string typeName = path + ".Collection.CollectionHistory";
            return (ICollectionHistory) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICollectionItem CreateCollectionItem()
        {
            string typeName = path + ".Collection.CollectionItem";
            return (ICollectionItem) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICollectionListRules CreateCollectionListRules()
        {
            string typeName = path + ".Collection.CollectionListRules";
            return (ICollectionListRules) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICollectionPagingRules CreateCollectionPagingRules()
        {
            string typeName = path + ".Collection.CollectionPagingRules";
            return (ICollectionPagingRules) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IComment CreateComment()
        {
            string typeName = path + ".Contents.Comment";
            return (IComment) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICommentPKZone CreateCommentPKZone()
        {
            string typeName = path + ".Contents.CommentPKZone";
            return (ICommentPKZone) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICompany CreateCompany()
        {
            string typeName = path + ".Crm.Company";
            return (ICompany) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IComplain CreateComplain()
        {
            string typeName = path + ".Crm.Complain";
            return (IComplain) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IContacter CreateContacter()
        {
            string typeName = path + ".Crm.Contacter";
            return (IContacter) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IContentCharge CreateContentCharge()
        {
            string typeName = path + ".Contents.ContentCharge";
            return (IContentCharge) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IContentManage CreateContentManage()
        {
            string typeName = path + ".Contents.ContentManage";
            return (IContentManage) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IPermissionContent CreateContentPermission()
        {
            string typeName = path + ".Contents.PermissionContent";
            return (IPermissionContent) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IModel CreateCotentModel()
        {
            string typeName = path + ".CommonModel.ModelDal";
            return (IModel) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IModelTemplate CreateCotentModelTemplate()
        {
            string typeName = path + ".CommonModel.ModelTemplate";
            return (IModelTemplate) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICounter CreateCounter()
        {
            string typeName = path + ".Analytics.Counter";
            return (ICounter) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICoupon CreateCoupon()
        {
            string typeName = path + ".Shop.Coupon";
            return (ICoupon) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ICouponItem CreateCouponItem()
        {
            string typeName = path + ".Shop.CouponItem";
            return (ICouponItem) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IDeliverCharge CreateDeliverCharge()
        {
            string typeName = path + ".Shop.DeliverCharge";
            return (IDeliverCharge) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IDeliverItem CreateDeliverItem()
        {
            string typeName = path + ".Shop.DeliverItem";
            return (IDeliverItem) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IDeliverType CreateDeliverType()
        {
            string typeName = path + ".Shop.DeliverType";
            return (IDeliverType) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IDownloadError CreateDownloadError()
        {
            string typeName = path + ".Accessories.DownloadError";
            return (IDownloadError) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IDownServer CreateDownServer()
        {
            string typeName = path + ".Accessories.DownServer";
            return (IDownServer) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IFavorite CreateFavorite()
        {
            string typeName = path + ".Accessories.Favorite";
            return (IFavorite) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IFiles CreateFiles()
        {
            string typeName = path + ".Accessories.Files";
            return (IFiles) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IFlowProcess CreateFlowProcess()
        {
            string typeName = path + ".WorkFlows.FlowProcess";
            return (IFlowProcess) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IIncludeFile CreateIncludeFile()
        {
            string typeName = path + ".Templates.IncludeFile";
            return (IIncludeFile) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IInvoice CreateInvoice()
        {
            string typeName = path + ".Shop.Invoice";
            return (IInvoice) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IIPStorage CreateIPStorage()
        {
            string typeName = path + ".Analytics.IPStorage";
            return (IIPStorage) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IKeywords CreateKeywords()
        {
            string typeName = path + ".Accessories.Keywords";
            return (IKeywords) Assembly.Load(path).CreateInstance(typeName);
        }

        public static ILabelManage CreateLabelManage()
        {
            string typeName = path + ".TemplateProc.LabelManage";
            return (ILabelManage) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IMessage CreateMessage()
        {
            string typeName = path + ".Accessories.Message";
            return (IMessage) Assembly.Load(path).CreateInstance(typeName);
        }

        public static INodes CreateNodes()
        {
            string typeName = path + ".Contents.Nodes";
            return (INodes) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IOrder CreateOrder()
        {
            string typeName = path + ".Shop.Order";
            return (IOrder) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IOrderFeedback CreateOrderFeedback()
        {
            string typeName = path + ".Shop.OrderFeedback";
            return (IOrderFeedback) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IOrderItem CreateOrderItem()
        {
            string typeName = path + ".Shop.OrderItem";
            return (IOrderItem) Assembly.Load(path).CreateInstance(typeName);
        }

        public static IOtherReport CreateOtherReport()
        {
            string typeName = path + ".Analytics.Report.OtherReport";
            return (IOtherReport) Assembly.Load(path).CreateInstance(typeName);
        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -