﻿
{"id":846,"date":"2012-08-09T01:01:04","date_gmt":"2012-08-09T01:01:04","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=846"},"modified":"2012-08-09T01:01:04","modified_gmt":"2012-08-09T01:01:04","slug":"linq-ile-getdate-nasil-cekilir","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/linq-ile-getdate-nasil-cekilir\/","title":{"rendered":"LINQ ile GETDATE() Nas\u0131l \u00c7ekilir?"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>E\u011fer LINQ sorgular\u0131nda GetDate() metodunu kullanman\u0131z gerekiyorsa, veritaban\u0131nda yeni bir view olu\u015fturmam\u0131z yeterlidir.<br \/>\n\u00d6rnek olarak a\u015fa\u011f\u0131daki view\u0131 olu\u015fturunuz.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nCREATE VIEW vw_AnlikTarih\r\nAS\r\nSELECT GETDATE() AS DBDate\r\n<\/pre>\n<p>.dbml dosyan\u0131z\u0131 g\u00fcncelleyip, view\u0131 .dbml dosyas\u0131na s\u00fcr\u00fckleyin.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nVeriTabaniDataContext Veri = new VeriTabaniDataContext();\r\nConvert.ToDateTime(Veri.vw_AnlikTarihs.First().DBDate)\r\n<\/pre>\n<p>Bu \u015fekilde LINQ sorgular\u0131nda, GetDate() metodundan yararlanm\u0131\u015f olursunuz.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>E\u011fer LINQ sorgular\u0131nda GetDate() metodunu kullanman\u0131z gerekiyorsa, veritaban\u0131nda yeni bir view olu\u015fturmam\u0131z yeterlidir. \u00d6rnek olarak a\u015fa\u011f\u0131daki view\u0131 olu\u015fturunuz. CREATE VIEW vw_AnlikTarih AS SELECT GETDATE() AS DBDate .dbml dosyan\u0131z\u0131 g\u00fcncelleyip, view\u0131 .dbml dosyas\u0131na s\u00fcr\u00fckleyin. VeriTabaniDataContext&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[226],"tags":[262,751],"class_list":["post-846","post","type-post","status-publish","format-standard","hentry","category-linq","tag-getdate","tag-linq"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=846"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/846\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}