Beispiel #1
0
        static void Main(string[] args)
        {
            AFactory     af = AFactory.CreateBLLFactory();
            IUserInfoBLL ib = af.CreateUserInfoBLLInstance();
            UserInfo     u  = ib.Where().FirstOrDefault();

            Console.Write("用户ID:{0},用户名:{1}", u.UserId, u.UserName);
            Console.ReadKey();
        }
Beispiel #2
0
 public BaseController(/*ICategoryBLL categoryBLL, IContentsBLL contentsBLL, IFeedbackBLL feedbackBLL, IMenusBLL menusBLL, INewsBLL newsBLL, IProductsBLL productsBLL, IUserInfoBLL userInfoBLL*/)
 {
     CategoryBLL = aFactory.CreateCtegoryBLLInstance();
     ContentsBLL = aFactory.CreateContentsBLLInstance();
     FeedbackBLL = aFactory.CreateFeedbackBLLInstance();
     MenusBLL    = aFactory.CreateMenusBLLInstance();
     NewsBLL     = aFactory.CreateNewsBLLInstance();
     ProductsBLL = aFactory.CreateProductsBLLInstance();
     UserInfoBLL = aFactory.CreateUserInfoBLLInstance();
 }