-
Notifications
You must be signed in to change notification settings - Fork 0
huseyinezdemir/SamplePostgreSql
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
C# ile entity framework code first kullanarak postgresql veritabanına bağlanır. Ef ve postgresql için aşağıdaki şekilde paketlerin yüklenmesi gerekir. install-package Npgsql install-package EntityFramework install-package EntityFramework6.Npgsql Paketler yüklendikten sonra config dosyasına DbProviderFactories bilgisinin eklenmesi gerekiyor. Eklenmez ise veritabanı bağlantısı sırasında exception fırlatıyor. <system.data> <DbProviderFactories> <remove invariant="Npgsql" /> <add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql" type="Npgsql.NpgsqlFactory, Npgsql" /> </DbProviderFactories> </system.data> Her çalıştırıldığında varsa silip yeniden veritabanı oluşturacaktır. Fonksiyon v.s. tanımları için, OpulentDataContext altında tanımlanan CreateModel içerisinde veritabanına eklenebilir.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published