在实体框架CTP5中,能否通过一个国际奥委会集装箱建造被回收的实体?
I m使用Ninject,并与MVC捆绑起来,但当为某些商业规则建造时,我需要将一些服务注入我们的领域。
而我用的是建筑注射而不是方法或财产注射。
在实体框架CTP5中,能否通过一个国际奥委会集装箱建造被回收的实体?
I m使用Ninject,并与MVC捆绑起来,但当为某些商业规则建造时,我需要将一些服务注入我们的领域。
而我用的是建筑注射而不是方法或财产注射。
我不敢肯定,你会重新努力在这里取得什么成就,但欧洲复兴开发银行几乎没有任何宽松之处。 你们可以做的最好事是看一看反对方言所发射的物体。 在CTP5中,你需要把你的DbContext像样放在你们的构造中:
((IObjectContextAdapter)this).ObjectContext.ObjectMaterialized +=
this.ObjectContext_OnObjectMaterialized;
之后执行您的职能:ObjectContext_OnObjectMaterialized (object sender, ObjectMaterialized) 活动Args e)
。 你将能够接触你的目标,不幸的是,这一目标已经实现。 根据你们的需要,你或许能够在此采取一些令人感兴趣的行为。
BTW,这一句对我没有意义:
在为某些商业规则建造时,我需要将一些存放装置注入我的域名。
难道这不反对常识性遗产吗?
我倾向于不反对你试图做的事情。 我尽可能地将我的领域目标视而不见(主要是财产袋)。 当你需要采取某种行动时,如发出电子邮件,那么我就利用这一服务,并在需要采取行动的领域采用这种方法。 在此情况下,你只需要向您申请的各部分提供各种服务(Ninject可以提供更简单的服务)。
我认为,欧洲自由贸易区第5号法典可以有所帮助。 它尊重ValidatableObject接口,该接口将ValidationContext Object作为论据。 瓦莱德认证委员会是一个服务公司,因此,你应当能够利用审定目录标的对IoC集装箱的检查。 (这只是我最初的想法,我只字不提。) 如果我的英语不易懂,职业介绍会。
Update Sorry, just after I posted this comment I realized that the question is quite different than what I understood. So, I did try few things myself, and after some hit and trial and much more googling I was able to get somewhere. I was planning to post the answer here, but then thought against it, since the answer would be very long. So, I did post this blog instead.
或许可以帮助一些神职人员寻找同样的东西。 我希望,我现在就提出这个问题。
I have been trying to get the Entity Framework to work in my web application using MySQL. It works fine on my local pc, but doesn t work when I put it on the server. Since the server is a shared ...
I am using the Entity Framework with SQL Server. I have a many to many relationship between 2 tables. I have created a join table with just the primary key fields of the 2 tables. In the designer, the ...
I am in the process of developing a desktop application that needs a database. The application is currently targeted to SQL Express 2005 and works wonderfully. However, I m not crazy about having ...
I am using the ADO entity framework for the first time and am not sure of the best way of inserting db recored that contain foreign keys. this is the code that i am using, I would appreciate any ...
I have a table called ASB and a table called PeopleInvolved. There is a junction table called PeopleInvolved_ASB which simply contains an ASBID and a PeopleInvolvedID column. The columns act as a ...
I m using ASP.NET MVC and Entity Framework. I m going to pass a complex entity to the client side and allow the user to modify it, and post it back to the controller. But I don t know how to do that ...
I run this code: var cos = from k in _db.klienci_do_trasy where k.klient_id == 5 select k; but the query send to database is: SELECT * FROM `klienci_do_trasy` LIMIT 0, 30 why is it for, there ...
I have two EF entities. One has a property called HouseNumber. The other has two properties, one called StartHouseNumber and one called EndHouseNumber. I want to create a many to many association ...