Fastes使用WPF Prism从DB访问数据 [英] Fastes approach accessing the Data from DB using WPF Prism
问题描述
您好,
使用WPF PRISM从UI连接到SQL服务器数据库的最佳方法是什么?
1)我可以使用LinQ to SQL吗?
谢谢,
Velu
1。) 如果你谈论最快的代码执行,你应该使用System.Data.SqlClient
2提供的类。)如果你说快速开发是快速的,那么你应该考虑ADO .Net EntityFramework。
3。)在这里,您可以阅读为什么要使用ADO.Net EntityFramework而不是Linq2Sql:http://thedatafarm.com/blog/data-access/ LINQ到SQL-VS-实体框架/
Hi ,
What is the best approach to connect from UI to SQL server Database using WPF PRISM?
1) Can i go with LinQ to SQL ?
Thanks,
Velu
1.) if you are talking of fastest code execution you should use the classes provided by System.Data.SqlClient
2.) if you are talking of rapid development as being fast, then you should consider ADO.Net EntityFramework.
3.) Here you can read why you would want to use ADO.Net EntityFramework instead of Linq2Sql : http://thedatafarm.com/blog/data-access/linq-to-sql-vs-entity-framework/
这篇关于Fastes使用WPF Prism从DB访问数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!