Breeze.Net连接到实体框架 [英] Breeze.Net Connecting to Entity Framework

查看:116
本文介绍了Breeze.Net连接到实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,尝试将绒毛保持在最低限度。首先我们是新来的微风。我们有一个创建数据库优先实体框架的项目。使用SPA方法进行离线网页与AngularJS / BreezeJS组合。 Angular似乎工作正常,如实体框架EDMX文件已经存在。

Okay going to try to keep the fluff to a minimum. First we are new to Breeze. We have a project where the "Database First" Entity Framework was created. Using the SPA approach for offline webpage with AngularJS/BreezeJS combination. Angular seems to be working fine and as stated the Entity Framework EDMX file already exists.

我可以将Breeze.Net连接到我们的实体框架,如果有这样的具体的服务器端连接部分的例子?但完整的例子将是最好的。又一个实体框架Breeze.Net到BreezeJS

Can I connect Breeze.Net to our Entity Framework and if so are there any examples of this specifically the Server side connection part? But the full example would be best. aka Entity Framework to Breeze.Net to BreezeJS

如果我无法将Breeze连接到我的实体框架,我可以做一个数据库优先的Breeze.Net方法,如果是有一个如何做到这一点的例子?

If I cannot connect Breeze to my Entity Framework, can I do a "Database First" Breeze.Net approach and if yes is there an example of how to do this?

提前感谢

推荐答案

微风文档包括许多相关样本,包括最基本的角度Todo 示例。在这些示例中,DocCode具有最复杂的.NET Web API / EF变体(您可以从前端从Knockout转换为Angular)。

Breeze documentation includes many pertinent samples including the most basic Angular Todo sample. Among the samples, "DocCode" has the most sophisticated .NET Web API / EF variations (you can mentally translate from Knockout to Angular for the front-end).

您可以从 github 下载或克隆他们。

You can download or clone them all from github.

大多数(如果不是全部)EF样本依赖于代码优先模型,但您应该没有遇到 DbContext 生成的DB First(或与一个老式的 ObjectContext )。

Most (if not all) EF samples rely on a code-first model but you should have no trouble with a DbContext generated "DB First" (or with an old-school ObjectContext).

这篇关于Breeze.Net连接到实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆