I have develop a lot in Delphi and I was asked to work on a new application BUT they prefer that I use C#. It will be like a little erp, with a lot of CRUD operations. In Delphi you have a visual object called TQuery: once you visually define the connection to a specific table in the database, the TQuery define automatically all the CRUD statements. Also you can visually connect a table to this TQuery and all the columns and data will be created automatically: if you start the application and edit the data it will commit automatically. You can also connect textEdit, date and other objects to the columns on the TQuery and everithing will be showed and can be update. I would to know if there is something similar also in c#
我在Delphi中开发了很多东西,我被要求开发一个新的应用程序,但他们更喜欢我使用C#。它将像一个小小的ERP,有很多CRUD操作。在Delphi中,您有一个名为TQuery的可视对象:一旦您以可视方式定义了到数据库中特定表的连接,TQuery就会自动定义所有CRUD语句。您还可以可视化地将一个表连接到这个TQuery,所有的列和数据都将自动创建:如果您启动应用程序并编辑数据,它将自动提交。您还可以将TextEdit、Date和其他对象连接到TQuery上的列,所有内容都将显示并可以更新。我想知道在c#中是否也有类似的东西。
I have read about dataset but is not visually and you have to write the query manually, and i have not seen any type of binding to object that represent in real time a datatable in database.
我读过关于DataSet的文章,但不是可视化的,您必须手动编写查询,而且我还没有看到任何类型的对象绑定,这些绑定实时表示数据库中的DataTable。
更多回答
in C# you would be using Entity Framwork. There are some good editors for VS out there: marketplace.visualstudio.com/…
在C#中,您将使用实体框架。市面上有一些很好的VS编辑软件:Marketplace。VisualStudio.com/…
优秀答案推荐
Look into Entity Framework. It has a visual designer, you can work with C# syntax without having to write much or any SQL. You can start with an existing DB and it will generate your C# classes, or vice versa you can start with C# classes and it will generate your DB objects.
请查看实体框架。它有一个可视化设计器,您可以使用C#语法工作,而不必编写太多或任何SQL。您可以从现有的DB开始,它将生成您的C#类,反之亦然。您可以从C#类开始,它将生成您的DB对象。
更多回答
So your answer is "No, it does not have"?
所以你的回答是“没有”
There is not a strict Yes or No answer here. Delphi and C# are very different technologies so even similar functionality will have differences such that you cannot say one is equivalent to the other. The closest thing to what DavidS describes is Entity Framework, which will not be exactly the same as TQuery but seems to be the closest thing to it in C#.
这里没有严格的是或否的答案。Delphi和C#是非常不同的技术,所以即使是相似的功能也会有差异,以至于你不能说两者是等同的。最接近Davids描述的东西是实体框架,它不会与TQuery完全相同,但似乎是C#中最接近它的东西。
我是一名优秀的程序员,十分优秀!