﻿
{"id":19603,"date":"2020-12-02T16:01:35","date_gmt":"2020-12-02T16:01:35","guid":{"rendered":"https:\/\/www.gencayyildiz.com\/blog\/?p=19603"},"modified":"2020-12-02T16:01:35","modified_gmt":"2020-12-02T16:01:35","slug":"entity-framework-core-query-tags","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/entity-framework-core-query-tags\/","title":{"rendered":"Entity Framework Core &#8211; Query Tags"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>Bir \u00f6nceki <a href=\"https:\/\/www.gencayyildiz.com\/blog\/entity-framework-core-query-log\/\" rel=\"noopener noreferrer\" target=\"_blank\">Entity Framework Core \u2013 Query Log<\/a> ba\u015fl\u0131\u011f\u0131yla kaleme ald\u0131\u011f\u0131m\u0131z makalemizde Entity Framework Core ile olu\u015fturulan sorgular\u0131n loglanarak nas\u0131l takip edilebildi\u011fini incelemi\u015ftik. Bu i\u00e7eri\u011fimizde ise karma\u015f\u0131k uygulamalar \u00fczerinden canl\u0131 ortamlarda gelen onlarca iste\u011fe kar\u015f\u0131l\u0131k \u00fcretti\u011fi binlerce sorguyu daha kolay takip edilebilir hale getiren <em>Query Tags<\/em> \u00f6zelli\u011fini inceleyece\u011fiz.<\/p>\n<p><em>Query Tags<\/em>, LINQ sorgular\u0131 ile olu\u015fturulan sql query&#8217;leri aras\u0131nda correlate(ili\u015fki\/ba\u011f) olu\u015fturmam\u0131z\u0131 sa\u011flayan ve b\u00f6ylece hangi sorgunun hangi query&#8217;i generate etti\u011fini rahatl\u0131kla takip edebilmemize imkan veren bir \u00f6zelliktir.<\/p>\n<blockquote><p><em style=\"color:purple;\">Basit\u00e7e Query Tags, sorguyu etiketleyen bir \u00f6zelliktir.<\/em><\/p><\/blockquote>\n<p>Uygulamas\u0131 olduk\u00e7a basittir. LINQ sorgusunda IQueryable \u00fczerinden &#8216;TagWith()&#8217; extension metodu arac\u0131l\u0131\u011f\u0131yla olu\u015fturulacak sorgular\u0131 etiketleyebilir ve takip edebilirsiniz.<br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags.jpg\" alt=\"Entity Framework Core - Query Tags\" width=\"718\" height=\"178\" class=\"aligncenter size-full wp-image-19633\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags.jpg 718w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-300x74.jpg 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/a><br \/>\nG\u00f6r\u00fcld\u00fc\u011f\u00fc \u00fczere olu\u015fturulan sorguya etiket eklenmi\u015f ve daha anlaml\u0131 bir hale getirilmi\u015ftir.<\/p>\n<p>\u0130stenirse e\u011fer etiket \u00e7oklu sat\u0131r olacak \u015fekilde de belirtilebilmektedir;<br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-1.jpg\" alt=\"Entity Framework Core - Query Tags\" width=\"705\" height=\"197\" class=\"aligncenter size-full wp-image-19635\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-1.jpg 705w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-1-300x84.jpg 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/a><\/p>\n<p>Ya da IQueryable oldu\u011fu s\u00fcrece istenildi\u011fi kadar etikette at\u0131labilmektedir;<br \/>\n<a href=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-2.jpg\" alt=\"Entity Framework Core - Query Tags\" width=\"707\" height=\"263\" class=\"aligncenter size-full wp-image-19638\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-2.jpg 707w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2020\/12\/Entity-Framework-Core-Query-Tags-2-300x112.jpg 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/a><\/p>\n<p>G\u00f6r\u00fcld\u00fc\u011f\u00fc \u00fczere basit ama etkili bir niteli\u011fe sahip olan Quert Tags \u00f6zelli\u011fi uygulamalarda olduk\u00e7a faydal\u0131 bir i\u015flevselli\u011fe sahiptir diyebiliriz.<\/p>\n<p>\u0130lgilenenlerin faydalanmas\u0131 dile\u011fiyle&#8230;<br \/>\nSonraki yaz\u0131lar\u0131mda g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/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>Merhaba, Bir \u00f6nceki Entity Framework Core \u2013 Query Log ba\u015fl\u0131\u011f\u0131yla kaleme ald\u0131\u011f\u0131m\u0131z makalemizde Entity Framework Core ile olu\u015fturulan sorgular\u0131n loglanarak nas\u0131l takip edilebildi\u011fini incelemi\u015ftik. Bu i\u00e7eri\u011fimizde ise karma\u015f\u0131k uygulamalar \u00fczerinden canl\u0131 ortamlarda gelen onlarca&#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":11538,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[955,2914],"tags":[2850,3985,3986],"class_list":["post-19603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-entity-framework","category-entity-framework-core","tag-entity-framework-core","tag-entity-framework-core-query-tags","tag-query-tags"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/19603","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=19603"}],"version-history":[{"count":12,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/19603\/revisions"}],"predecessor-version":[{"id":19641,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/19603\/revisions\/19641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/11538"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=19603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=19603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=19603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}