<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ado.net - Bilişim Kurdu</title>
	<atom:link href="https://bilisimkurdu.github.io/tag/ado-net/feed/" rel="self" type="application/rss+xml" />
	<link>https://bilisimkurdu.github.io</link>
	<description>Bilişim Hakkında Her Şey</description>
	<lastBuildDate>Wed, 24 Jun 2020 07:14:48 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://bilisimkurdu.github.io/wp-content/uploads/2020/04/Logo-1-150x150.png</url>
	<title>ado.net - Bilişim Kurdu</title>
	<link>https://bilisimkurdu.github.io</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>.NET Core EF ile MYSQL veritabanı işlemleri</title>
		<link>https://bilisimkurdu.github.io/net-core-ef-ile-mysql-veritabani-islemleri/</link>
					<comments>https://bilisimkurdu.github.io/net-core-ef-ile-mysql-veritabani-islemleri/#respond</comments>
		
		<dc:creator><![CDATA[Yakup CONTARLI]]></dc:creator>
		<pubDate>Wed, 24 Jun 2020 07:14:48 +0000</pubDate>
				<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[.net core EF]]></category>
		<category><![CDATA[.Net Core Entity Framework]]></category>
		<category><![CDATA[ado.net]]></category>
		<category><![CDATA[bağlantı]]></category>
		<category><![CDATA[bağlantısı]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[EF core]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[sorguları]]></category>
		<guid isPermaLink="false">https://bilisimkurdu.github.io/?p=811</guid>

					<description><![CDATA[<p>Merhaba Muhterem Ziyaretçilerimiz, Bu yazımda .NET Core projesi üzerinden Entity Framework ile MYSQL veritabanı ile işlem yapmayı anlatmaya çalışacağım. Proje Visual Studio ilr oluşturulmuşsa; Visual Studio ile projeyi açtıktan sonra Tools -&#62; NuGet Package Manager -&#62; Package Manager Console aşamalarını takip ederek aşağıdaki komutları girerek Entitiy Framework paketleri yüklenir. Eğer Console ile oluşturulmuşsa; .NET Core&#8230;</p>
<p>The post <a href="https://bilisimkurdu.github.io/net-core-ef-ile-mysql-veritabani-islemleri/">.NET Core EF ile MYSQL veritabanı işlemleri</a> first appeared on <a href="https://bilisimkurdu.github.io">Bilişim Kurdu</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Muhterem Ziyaretçilerimiz,</p>



<p>Bu yazımda .NET Core projesi üzerinden Entity Framework ile MYSQL veritabanı ile işlem yapmayı anlatmaya çalışacağım.</p>



<span id="more-811"></span>



<p>Proje Visual Studio ilr oluşturulmuşsa;</p>



<p>Visual Studio ile projeyi açtıktan sonra Tools -&gt; NuGet Package Manager -&gt; Package Manager Console aşamalarını takip ederek aşağıdaki komutları girerek Entitiy Framework paketleri yüklenir.</p>



<pre class="wp-block-code"><code>Install-Package Microsoft.EntityFrameworkCore.Design
Install-Package Microsoft.EntityFrameworkCore.Tools</code></pre>



<p>Eğer Console ile oluşturulmuşsa;</p>



<pre class="wp-block-code"><code>dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet add package Microsoft.EntityFrameworkCore.Tools</code></pre>



<p>.NET Core versiyonu 3.0&#8217;ın altındaysa (&lt;.NET Core 3.0)</p>



<p>Visual Studio:</p>



<pre class="wp-block-code"><code>Install-Package Pomelo.EntityFrameworkCore.MySql

Scaffold-DbContext "Server=serverIPorName;Database=databaseName;User=userName;Password=pass;TreatTinyAsBoolean=true" Pomelo.EntityFrameworkCore.MySql -OutputDir Models-f
</code></pre>



<p>Console:</p>



<pre class="wp-block-code"><code>dotnet add package Pomelo.EntityFrameworkCore.MySql

dotnet ef dbcontext scaffold "Server=serverIPorName;Database=databaseName;User=userName;Password=password;TreatTinyAsBoolean=true;" "Pomelo.EntityFrameworkCore.MySql"
 -o Models -f

//veya
dotnet add package Pomelo.EntityFrameworkCore.MySql

dotnet ef dbcontext scaffold "server=serverIPorName;port=3306;user=root;password=mypass;database=database" Pomelo.EntityFrameworkCore.MySql -o Models -f
</code></pre>



<p>.NET Core 3.0 ve üzeri ise:</p>



<p>Visual Studio:</p>



<pre class="wp-block-code"><code>Install-Package MySql.Data.EntityFrameworkCore

Scaffold-DbContext "server=serverIPorAdress;port=3306;user=userName;password=mypass;database=databaseName" MySql.Data.EntityFrameworkCore -OutputDir Models -f</code></pre>



<p>Console:</p>



<pre class="wp-block-code"><code>dotnet add package MySql.Data.EntityFrameworkCore

dotnet ef dbcontext scaffold "server=serverIPorAdress;port=3306;user=userName;password=mypass;database=databaseName" MySql.Data.EntityFrameworkCore -o Models -f</code></pre>



<p>komutları girilerek gerekli paketler yüklenip bağlantı sağlanır.</p>



<p>Sorgu işlemleri için aşağıdaki linkleri inceleyebilirsiniz.</p>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="C# ile MYSQL veri tabanına bağlanmaya çalıştık" width="1180" height="664" src="https://www.youtube.com/embed/7phgYQiaXzM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<p><a href="https://bilisimkurdu.github.io/c-entity-framework-uzerinden-select-ve-like-deyimleri/">https://bilisimkurdu.github.io/c-entity-framework-uzerinden-select-ve-like-deyimleri/</a></p>



<p>Not : Context oluşturduktan sonra .NET Core Entitiy framework sorgu işlemleri şu şekilde yapılır:</p>



<pre class="wp-block-code"><code>contextName.TableName

//Örnek Context1 contexti ve cntx nesnesi ve Test tablosu olduğunu düşünürsek.

Context1 cntx = new Context1 ();
cntx.Test</code></pre>



<p>Eğer bu yazıyla ilişkin anlatamadığım\anlaşılamayan konular varsa yazının altına yorum yapabilirsiniz.</p>



<p>İyi günler.</p><p>The post <a href="https://bilisimkurdu.github.io/net-core-ef-ile-mysql-veritabani-islemleri/">.NET Core EF ile MYSQL veritabanı işlemleri</a> first appeared on <a href="https://bilisimkurdu.github.io">Bilişim Kurdu</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://bilisimkurdu.github.io/net-core-ef-ile-mysql-veritabani-islemleri/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
