Merge pull request #14862 from abpframework/salihozkara/jsonColumn

Add Ef Core Json Column Source Code
pull/14869/head
Halil İbrahim Kalkan 3 years ago committed by GitHub
commit f6be366641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,7 +68,7 @@ public class MyDbContext : AbpDbContext<MyDbContext>
builder.Entity<Person>(b =>
{
b.ToTable(MyProjectConsts.DbTablePrefix + "Persons", MyProjecConsts.DbSchema);
b.ToTable(MyProjectConsts.DbTablePrefix + "Persons", MyProjectConsts.DbSchema);
b.ConfigureByConvention();
b.OwnsOne(x=>x.ContactDetails, c =>
{
@ -125,6 +125,10 @@ As you can see, thanks to JSON Columns feature the **ContactDetails** row has JS
In this article, I've briefly introduced the JSON Columns feature that was shipped with EF Core 7. It's pretty straightforward to use JSON Columns in an ABP based application. You can see the examples above and give it a try!
### The Source Code
* You can find the full source code of the example application [here](https://github.com/abpframework/abp-samples/tree/master/EfCoreJSONColumnDemo).
* You can see this pull [request](https://github.com/abpframework/abp-samples/pull/210) for the changes I've done after creating the application.
### References
* [https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew#json-columns](https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew#json-columns)

Loading…
Cancel
Save