光影魔术手可以切片吗_实体框架魔术独角兽(还有更多!)现已开放,并且可以收回
![](/assets/blank.gif)
光影魔术手可以切片吗
Almost exactly two years from the day we announced Entity Framework "Magic Unicorn Edition" and just a few months after open sourcing of ASP.NET MVC 4, ASP.NET Web API, and Razor we're happy to announce we will release the source code for the Entity Framework under an open source license as well!
出于多种原因,这很酷。 EF团队继续致力于透明性。 社区不仅可以监视签到并监视项目的进度,还可以参与进来,提交请求修复错误的请求,使用日常构建并更有效地提供反馈。
异步-我最喜欢的新实体框架功能 (Async - My Favorite New Entity Framework feature)
举个例子,我想在即将到来的EF6中展示一项新功能,该团队正在努力下一年发布。 Visual Studio 2012引入了Aync和Await概念,使异步代码更易于编写(和理解)。 Damian,Levi和我在本周的Hanselminutes播客中讨论了异步及其周围的概念。
EF6 will introduce support for the new task-based asynchronous pattern when querying and saving data. You can actually look in the open source code base today and find the first parts of this feature are already checked in! ;)
EF6将在查询和保存数据时引入对新的基于任务的异步模式的支持。 您实际上可以立即查看开放源代码库,并发现此功能的第一部分已经签入! ;)
As an example, using EF5 you could define a helper method that will find the store closest to a given location. Any code that calls this method would need to wait while it executed.
例如,使用EF5,您可以定义一个助手方法,该方法将找到最接近给定位置的商店。 任何调用此方法的代码都需要在执行时等待。
public Store FindClosestStore(DbGeography location){ using (var context = new StoreContext()) { return (from s in context.Stores orderby s.Location.Distance(location) select s).First(); }}
But in EF6 it is easy to turn this into an asynchronous method that can be left to execute while the calling code continues on with other tasks.
但是在EF6中,很容易将其转换为一个异步方法,在调用代码继续执行其他任务时,该方法可以继续执行。
public async Task<Store> FindClosestStore(DbGeography location){ using (var context = new StoreContext()) { return await (from s in context.Stores orderby s.Location.Distance(location) select s).FirstAsync(); }}
This is just one feature but it's my favorite. You'll also soon see mapping of Stored Procedures as well as support for custom conventions using the Code First API.
这只是一项功能,但这是我的最爱。 您还将很快看到存储过程的映射以及使用Code First API的自定义约定的支持。
Be sure to follow the Entity Framework Repository and subscribe to the check-ins via RSS to stay up on the latest features and improvements to EF! Also, do go chat directly with the Entity Framework team on Jabbr (powered by SignalR and Azure) in their room: http://jabbr.net/#/rooms/EntityFramework
确保遵循Entity Framework Repository并通过RSS订阅签入,以掌握EF的最新功能和改进! 另外,请直接与Jabbr上的Entity Framework团队(由SignalR和Azure提供支持)在他们的房间聊天: http ://jabbr.net/#/rooms/EntityFramework
相关链接 (Related Links)
Entity Framework Team Blog
实体框架团队博客
Entity Framework Roadmap
实体框架路线图
MS Open Technologies Blog
微软开放技术博客
Port 25 Blog
端口25博客
翻译自: https://www.hanselman.com/blog/entity-framework-magic-unicorn-and-much-more-is-now-open-source-with-take-backs
光影魔术手可以切片吗
光影魔术手可以切片吗_实体框架魔术独角兽(还有更多!)现已开放,并且可以收回相关推荐
- java连接数据库不使用框架_实体框架数据库连接不重新连接
我在Entity Framework中遇到了数据库连接问题 . 我在ASP.NET MVC 3 Web应用程序中使用EF 4.1.10331,但它也因EF 5而失败 . 当我的Web应用程序启动时,由 ...
- mysql ef6 您的项目引用了最新版_您的项目引用了最新实体框架;但是,找不到数据链接所需的与版本兼容的实体框架数据库 EF6使用Mysql的技巧...
转载至: http://www.cnblogs.com/Imaigne/p/4153397.html 您的项目引用了最新实体框架:但是,找不到数据链接所需的与版本兼容的实体框架数据库 EF6使用Mys ...
- wpf mysql 框架_带有 WPF 和实体框架6的简单数据应用 - Visual Studio | Microsoft Docs
使用 WPF 和 Entity Framework 6 创建简单的数据应用程序Create a simple data application with WPF and Entity Framewor ...
- 带有审计表的实体框架核心(EF Core)
目录 介绍 背景 使用代码 主(Main)方法 运行程序 IAudited Model1.cs Model1.Partial.cs 部分类CUsers TVUT类 局部类Model1 OnModelC ...
- 具有审计表的实体框架
目录 介绍 背景 使用代码 Main方法 运行程序 IAudited Model1.edmx 总结 下载TestEntityFramework.zip - 20 KB 介绍 本文提供了将Entity ...
- C#代码生成工具:文本模板初体验 使用T4批量修改实体框架(Entity Framework)的类名...
转自:http://www.cnblogs.com/huangcong/archive/2011/07/20/1931107.html 在之前的文本模板(T4)初体验中我们已经知道了T4的用处,下面就 ...
- [渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:MVC程序中实体框架的连接恢复和命令拦截...
这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第四篇:MVC程序中实体框架的连接恢复和 ...
- 实体框架高级应用之动态过滤 EntityFramework DynamicFilters
实体框架高级应用之动态过滤 EntityFramework DynamicFilters 实体框架高级应用之动态过滤 EntityFramework DynamicFilters 我们开门见山,直奔主 ...
- Rafy 领域实体框架设计 - 重构 ORM 中的 Sql 生成
前言 Rafy 领域实体框架作为一个使用领域驱动设计作为指导思想的开发框架,必然要处理领域实体到数据库表之间的映射,即包含了 ORM 的功能.由于在 09 年最初设计时,ORM 部分的设计并不是最重要 ...
最新文章
- ASP.NET2.0图片格式转换【月儿原创】
- javascript基础整理
- 习惯性朴实简单!一起学习MySQL常见单行函数,字符数学日期流程控制
- selenium之 chromedriver与chrome版本映射表(更新至v2.43)
- Internet 打印提示“打印机安装失败、打印机名称无效”的解决
- SQLServer性能优化之活用临时表
- 网易公开课专辑下载脚本python
- 时域、频域、傅里叶变换
- 常见坐标系经纬度转换
- centos7安装N卡驱动和conda pytorch1.7.1深度学习环境
- 为什么Jmeter 运行时时到达持续时间不停止?
- 低碳世界杂志低碳世界杂志社低碳世界编辑部2022年第7期目录
- ios开发之音频视频开发
- 口碑好工作站服务器维修,童颜玩物 惠普Z800顶级工作站深度拆解
- 第一章:Django入门篇
- openofdm中complex_to_mag的分析
- 软考中级程序设计师复习——数据库基础(2)
- 《蛋仔派对》之玩转‘创意工坊’
- HLW8112(8110)在电源转化效率系统的应用
- C语言中的基本数据类型
热门文章
- uboot-----borad.c .
- Mac 装win系统
- mysql中文显示乱码以及插入语句含有中文时报错(ERROR 1366 (HY000): Incorrect string value: '\xCE\xF7\xB9\xCF' for co)的解决方案
- 如何保证socket长连接
- 桌面图标美化,图包分享
- CSDN新星计划新玩法、年度勋章挑战赛开启
- 瑞信研报:甲骨文跑赢大盘 目标价格38美元
- HTML 初学制作网页遇到问题的解决方法
- jQuery基础-01
- 中小型企业网络规划设计方案_计算机三级网络技术(2):中小型网络系统总体规划与设计...