Best way to create a crud with EntityFramework 6

1 Answer 143 Views
DataForm EntityFrameworkCoreDataSource (.Net Core) GridView
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Sami asked on 01 Nov 2022, 07:26 PM

Hi:

Could you advise me about the best way to create a crud with EntiyFramework 6 using radgrid and radDataForm?

The use of EntityFrameworkCoreDataSource is good idea?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 02 Nov 2022, 08:43 AM

Hello Sami,

The best approach for CRUD with EF is up to your preferences and requirements. In the general case, using EntityFrameworkCoreDataSource should help you easily integrate the data coming from your EF DB context in the UI, thus saving you some time to do this manually. I would suggest you to give the EntityFrameworkCoreDataSource a try and see if it fits for your requirement.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Sami
Top achievements
Rank 2
Iron
Iron
Iron
commented on 02 Nov 2022, 10:33 PM

Thanks for your help. Is ready to be used with entity framework 6?

Do you have a sample code?

Martin Ivanov
Telerik team
commented on 03 Nov 2022, 11:32 AM

You can use the LIB to test the EF Core 6 support in EntityFrameworkCoreDataSource. We don't have an example dedicated to .NET 6, but you can use the following SDK example as a base and also the information from the help documentation.

Tags
DataForm EntityFrameworkCoreDataSource (.Net Core) GridView
Asked by
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or