Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf 多租户教程,例如?_Wcf_Entity Framework_Multi Tenant - Fatal编程技术网

Wcf 多租户教程,例如?

Wcf 多租户教程,例如?,wcf,entity-framework,multi-tenant,Wcf,Entity Framework,Multi Tenant,我正在构建一个应用程序,需要为每个客户创建一个数据库。 我使用的是wcf和EF。但是我找不到一个关于多单元设计的好例子或教程 现在我正在考虑在wcf中做类似的事情: public product(int id,LicenseID) { dal = new dal(LicenseID) <--create connection with DB from a specific License dal.getProduct(id) <-- getProduct from that

我正在构建一个应用程序,需要为每个客户创建一个数据库。 我使用的是wcf和EF。但是我找不到一个关于多单元设计的好例子或教程

现在我正在考虑在wcf中做类似的事情:

public product(int id,LicenseID)
{
  dal = new dal(LicenseID)  <--create connection with DB from a specific License
  dal.getProduct(id) <-- getProduct from that database 
}
公共产品(int id、LicenseID)
{

dal=new dal(LicenseID)在Rowan Miller(微软ADO.NET实体框架团队的程序经理)的博客上发布了一篇关于多租户的示例