小编gru*_*uve的帖子

实体框架 - 渴望加载相关实体

对不起,标题不是更具体 - 我不知道如何简洁地描述.我有Trips和Location,它们具有多对多的关系 - 直截了当,除了Locations不需要知道使用它们的Trips.我创建了这些实体来代表这个:

public class Trip
{
    public int TripId { get; set; }
    public virtual IList<TripLocation> TripLocations { get; set; }
}

public class TripLocation
{
    public int TripId { get; set; }
    public int LocationId { get; set; }

    public virtual Location Location { get; set; }
}

public class Location
{
    public int LocationId { get; set; }
    // Note: Intentionally no collection of Trips
}
Run Code Online (Sandbox Code Playgroud)

我可以让Trip快速加载它的TripLocations但我无法让TripLocations急于加载他们的位置.我已经尝试了一些流畅的配置组合和"包含"在查询中,如

IQueryable<Trip> query = from trip in context
                              .Include(r …
Run Code Online (Sandbox Code Playgroud)

entity-framework eager-loading ef-code-first

9
推荐指数
1
解决办法
6671
查看次数

自动导出失败

作为Azure订阅的管理员,我收到电子邮件报告:

2013年9月5日12:00:11 AM {server:database}的自动SQL导出失败.无法进行要导出的临时数据库副本.

我删除了这个服务器,没有明确删除自动导出配置.

第一个问题:我如何告诉Azure停止尝试导出?

第二个问题:新手错误(如果是这样请让我知道我没做的)或错误?

谢谢!

azure azure-sql-database

5
推荐指数
1
解决办法
780
查看次数

如何配置在Compute Emulator中运行的Azure应用程序?

我认为分析部署到Azure的应用程序并不是什么大问题http://msdn.microsoft.com/en-us/library/hh369930.aspx

我想在Compute Emulator中本地做同样的事情.看起来这个目前很难http://www.pettijohn.com/2011/05/performance-testing-azure-dev-fabric.html充其量,至少使用原生的VisualStudio 2010分析器.

我错过了一个简单的方法吗?是否有任何第三方工具使这相当容易?

我正在使用Azure SDK 1.4和Azure Tools for Visual Studio 2010 1.3

profile azure

3
推荐指数
1
解决办法
2353
查看次数