<?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>mysql - Bilişim Kurdu</title>
	<atom:link href="https://bilisimkurdu.github.io/tag/mysql/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>mysql - 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>
		<item>
		<title>Cannot save&#8217;&#8230;Models\Model1.edmx&#8217;: Could not load file or assembly &#8230;</title>
		<link>https://bilisimkurdu.github.io/cannot-save-modelsmodel1-edmx-could-not-load-file-or-assembly/</link>
					<comments>https://bilisimkurdu.github.io/cannot-save-modelsmodel1-edmx-could-not-load-file-or-assembly/#respond</comments>
		
		<dc:creator><![CDATA[Yakup CONTARLI]]></dc:creator>
		<pubDate>Fri, 03 May 2019 18:38:21 +0000</pubDate>
				<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Genel]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Cannot load Model.edmx]]></category>
		<category><![CDATA[Cannot load model.edmx': Could not load file or assembly]]></category>
		<category><![CDATA[Cannot load Model1.edmx': Could not load file or assembly]]></category>
		<category><![CDATA[Cannot save Model1.edmx': Could not load file or assembly]]></category>
		<category><![CDATA[Cannot save'...Models\Model1.edmx': Could not load file or assembly...]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[provider]]></category>
		<guid isPermaLink="false">https://bilisimkurdu.github.io/?p=464</guid>

					<description><![CDATA[<p>Merhaba Muhterem Ziyaretçiler, Bu yazımda Visual Studio ile çalışırken zaman zaman aldığımız bir hata üzerine olacak. Model klasörüne oluşturulan EntitiyFramework dosyası açılırken &#8220;Cannot save&#8217;…Models\Model1.edmx&#8217;: Could not load file or assembly …&#8221; alıyorsanız; ComponentModelCache temizliği Visual Studio programını kapalı halde aşağıda uygun olan versiyona göre dizin yoluna gelerek içindeki bütün dosyaları siliyoruz. Visual Studio 2017 için;&#8230;</p>
<p>The post <a href="https://bilisimkurdu.github.io/cannot-save-modelsmodel1-edmx-could-not-load-file-or-assembly/">Cannot save’…Models\Model1.edmx’: Could not load file or assembly …</a> first appeared on <a href="https://bilisimkurdu.github.io">Bilişim Kurdu</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Muhterem Ziyaretçiler,</p>



<p>Bu yazımda Visual Studio ile çalışırken zaman zaman aldığımız bir hata üzerine olacak.</p>



<p>Model klasörüne oluşturulan EntitiyFramework dosyası açılırken &#8220;Cannot save&#8217;…Models\Model1.edmx&#8217;: Could not load file or assembly …&#8221; alıyorsanız;</p>



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



<p><em><strong>ComponentModelCache temizliği</strong></em></p>



<p>Visual Studio programını kapalı halde aşağıda uygun olan versiyona göre dizin yoluna gelerek içindeki bütün dosyaları siliyoruz.</p>



<p>Visual Studio 2017 için;</p>



<pre class="wp-block-code"><code>%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\15.0\ComponentModelCache</code></pre>



<p>Visual Studio 2015 için;</p>



<pre class="wp-block-code"><code>%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
//veya
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0_installID\ComponentModelCache</code></pre>



<p> Visual Studio 2013 için; </p>



<pre class="wp-block-code"><code>%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
//veya
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\12.0_installID\ComponentModelCache</code></pre>



<p>Visual Studio 2012 için;  </p>



<pre class="wp-block-code"><code>%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
//veya
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache</code></pre>



<p> Visual Studio 2010 için;   </p>



<pre class="wp-block-code"><code>%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\10.0\ComponentModelCache
//veya
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\10.0_installID\ComponentModelCache</code></pre>



<p>Veya otomatik temizlemek isterseniz aşağıdaki adresten Visual Studio eklentisini indirip kurabilirsiniz.</p>



<p><a href="https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ClearMEFComponentCache">https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ClearMEFComponentCache</a></p>



<p><em><strong>EntitiyFramework oluşturulurken faydanılan Data Provider (Connector) onarımı veya tekrardan kurulumu</strong></em></p>



<p>Misal olarak MySQL provider <a rel="noreferrer noopener" aria-label="MySQL .net Provider (yeni sekmede açılır)" href="https://dev.mysql.com/downloads/connector/net/" target="_blank">MySQL .net Provider</a> ve <a rel="noreferrer noopener" aria-label="MySQL for Visual Studio (yeni sekmede açılır)" href="https://dev.mysql.com/downloads/windows/visualstudio/" target="_blank">MySQL for Visual Studio</a></p>



<p>Bir Misal daha verirsek <a rel="noreferrer noopener" aria-label="Oracle ODP.NET (yeni sekmede açılır)" href="https://www.oracle.com/technetwork/topics/dotnet/index-085163.html" target="_blank">Oracle ODP.NET</a></p>



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



<p>İyi akşamlar.</p><p>The post <a href="https://bilisimkurdu.github.io/cannot-save-modelsmodel1-edmx-could-not-load-file-or-assembly/">Cannot save’…Models\Model1.edmx’: Could not load file or assembly …</a> first appeared on <a href="https://bilisimkurdu.github.io">Bilişim Kurdu</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://bilisimkurdu.github.io/cannot-save-modelsmodel1-edmx-could-not-load-file-or-assembly/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
