﻿<?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>Tablo Property Değerleri &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/tablo-property-degerleri/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Mon, 13 Jun 2022 20:18:22 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>SQL Server&#8217;da Tablonun Property Değerlerini Oluşturmak</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-tablonun-property-degerlerini-olusturmak</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Fri, 18 Mar 2022 22:33:21 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server'da Tablonun Property Değerleri]]></category>
		<category><![CDATA[Tablo Property Değerleri]]></category>
		<category><![CDATA[Tablonun Property Değerlerini Oluşturmak]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=13380</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server&#8217;da tablonun Property değerlerini oluşturmak ile ilgili bilgi vermeye çalışacağım. SQL Server&#8217;da oluşturmuş olduğumuz tabloların Csharp ya da Java Property...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server&#8217;da tablonun Property değerlerini oluşturmak ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server&#8217;da oluşturmuş olduğumuz tabloların Csharp ya da Java Property karşılıklarını görmek isteyebilirsiniz.</p>
<p>Aşağıdaki kodu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">SELECT 'public ' + CASE DATA_TYPE
                       WHEN 'bigint' THEN
                           'int'
                       WHEN 'binary' THEN
                           'Byte[]'
                       WHEN 'bit' THEN
                           'int'
                       WHEN 'char' THEN
                           'char'
                       WHEN 'datetime' THEN
                           'DateTime'
                       WHEN 'decimal' THEN
                           'decimal'
                       WHEN 'float' THEN
                           'float'
                       WHEN 'image' THEN
                           'Byte[]'
                       WHEN 'int' THEN
                           'int'
                       WHEN 'money' THEN
                           'double'
                       WHEN 'nchar' THEN
                           'string'
                       WHEN 'ntext' THEN
                           'string'
                       WHEN 'nvarchar' THEN
                           'string'
                       WHEN 'numeric' THEN
                           'int'
                       WHEN 'real' THEN
                           'decimal'
                       WHEN 'smalldatetime' THEN
                           'DateTime'
                       WHEN 'smallmoney' THEN
                           'double'
                       WHEN 'smallint' THEN
                           'int'
                       WHEN 'text' THEN
                           'string'
                       WHEN 'timestamp' THEN
                           'Date'
                       WHEN 'uniqueidentifier' THEN
                           'string'
                       WHEN 'varbinary' THEN
                           'Byte[]'
                       WHEN 'varchar' THEN
                           'string'
                       ELSE
                           'Unknwon Type ' + DATA_TYPE + ' DataType'
                   END + ' ' + COLUMN_NAME + ' { get; set; }'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Categories'; --Veritabanı tablo adını bu kısımdan değiştireceksiniz.</code></pre>
<p>Yukarıdaki kodu çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-13382 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2022/03/sql-serverda-tablonun-property-degerlerini-olusturmak-1.jpg" alt="SQL Server'da Tablonun Property Değerlerini Oluşturmak" width="700" height="451" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2022/03/sql-serverda-tablonun-property-degerlerini-olusturmak-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2022/03/sql-serverda-tablonun-property-degerlerini-olusturmak-1-315x203.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2022/03/sql-serverda-tablonun-property-degerlerini-olusturmak-1-466x300.jpg 466w, https://sqlserveregitimleri.com/wp-content/uploads/2022/03/sql-serverda-tablonun-property-degerlerini-olusturmak-1-210x135.jpg 210w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere ilgili tablonun Property değerleri oluşturulmuş oldu.</p>
<p>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 218</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
