我正在将ASP.NET MVC
个带有简单CRUD
操作的SQL
Web应用程序编写到Visual Studio
数据库中。我使用ADO.NET Entity Data Model
将数据库添加到Player - (PK)PlayerID
Season - (PK)SeasonID
Team- (PK)TeamID
SeasonTeam - (PK)SeasonID from Season
- (PK)TeamID from Team
Roster - (PK)PlayerID from Player
- (PK)SeasonID from SeasonTeam
- (PK)TeamID from SeasonTeam
。一切顺利,直到我意识到我的一个表没有在EDMX图中显示为实体,而是在Associations文件夹中。
以下是SQL图表,EDMX图表和模型浏览器的屏幕截图:http://imgur.com/a/onzgn
有5个表:
Player
Season
,Team
,SeasonTeam
和EDMX
表在Roster
图中显示为实体,但private Bitmap createBitmap_ScriptIntrinsicBlur(Bitmap src, float r) {
//Radius range (0 < r <= 25)
if(r <= 0){
r = 0.1f;
}else if(r > 25){
r = 25.0f;
}
Bitmap bitmap = Bitmap.createBitmap(src.getWidth(), src.getHeight(),Bitmap.Config.ARGB_8888);
RenderScript renderScript = RenderScript.create(getActivity());
Allocation blurInput = Allocation.createFromBitmap(renderScript, src);
Allocation blurOutput = Allocation.createFromBitmap(renderScript, bitmap);
ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(renderScript,Element.U8_4(renderScript));
blur.setInput(blurInput);
blur.setRadius(r);
blur.forEach(blurOutput);
blurOutput.copyTo(bitmap);
renderScript.destroy();
return bitmap;
}
表是不,并显示为一个关联。如何在ADO.NET中将'Roster'表作为实体?
答案 0 :(得分:0)
默认情况下不会生成它,因为您的表只有主键