{"id":214,"date":"2014-12-16T18:04:28","date_gmt":"2014-12-16T18:04:28","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/"},"modified":"2014-12-16T18:04:28","modified_gmt":"2014-12-16T18:04:28","slug":"strongly-typed-views-net-client-library","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/strongly-typed-views-net-client-library\/","title":{"rendered":"Strongly Typed Views with the .NET Client Library"},"content":{"rendered":"\n<p>The <a href=\"https:\/\/www.couchbase.com\/develop\/net\/next\/\">latest bits<\/a> of the Couchbase .NET Client Library support a few different view querying options.\u00a0 In this post, I&#8217;ll describe those options in detail.\u00a0 To play along at home, make sure you have the latest Couchbase Server installed with the beer-sample sample bucket.\u00a0<\/p>\n\n\n\n<p>I&#8217;ve added a view named &#8220;by_name&#8221; to the beer-sample bucket in the &#8220;beer&#8221; design doc.\u00a0 This view simply creates a secondary index on the &#8220;name&#8221; property of &#8220;beer&#8221; documents.<\/p>\n\n\n\n<p><span>function<\/span> <span>(<\/span>doc<span>,<\/span> meta<span>)<\/span> <span>{<\/span><br>\n\u00a0 <span>if<\/span> <span>(<\/span>doc.<span>name<\/span> <span>&amp;&amp;<\/span> doc.<span>type<\/span> <span>&amp;&amp;<\/span> doc.<span>type<\/span> <span>==<\/span> <span>&#8220;beer&#8221;<\/span><span>)<\/span> <span>{<\/span><br>\n\u00a0 \u00a0 emit<span>(<\/span>doc.<span>name<\/span><span>,<\/span> <span>null<\/span><span>)<\/span><span>;<\/span><br>\n\u00a0 <span>}<\/span> \u00a0 \u00a0<br>\n<span>}<\/span><\/p>\n\n\n\n<p>Querying this view with the non-generics version of <em>GetView<\/em> will yield an enumerable collection of <em>IViewRow<\/em> instances which contain information about the rows in the view.<\/p>\n\n\n\n<p>Setup your client code as follows:<\/p>\n\n\n\n<p>var config <span>=<\/span> <a href=\"https:\/\/www.google.com\/search?q=new+msdn.microsoft.com\"><span>new<\/span><\/a> CouchbaseClientConfiguration<span>(<\/span><span>)<\/span><span>;<\/span><br>\nconfig<span>.<\/span><span>Urls<\/span><span>.<\/span><span>Add<\/span><span>(<\/span><a href=\"https:\/\/www.google.com\/search?q=new+msdn.microsoft.com\"><span>new<\/span><\/a> Uri<span>(<\/span><span>&#8220;https:\/\/localhost:8091\/pools&#8221;<\/span><span>)<\/span><span>)<\/span><span>;<\/span><br>\nconfig<span>.<\/span><span>Bucket<\/span> <span>=<\/span> <span>&#8220;beer-sample&#8221;<\/span><span>;<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\n<\/p>\n\n\n\n<p>var client <span>=<\/span> <a href=\"https:\/\/www.google.com\/search?q=new+msdn.microsoft.com\"><span>new<\/span><\/a> CouchbaseClient<span>(<\/span>config<span>)<\/span><span>;<\/span><\/p>\n\n\n\n<p>Then query the view:<\/p>\n\n\n\n<p>var view <span>=<\/span> client<span>.<\/span><span>GetView<\/span><span>(<\/span><span>&#8220;beer&#8221;<\/span>, <span>&#8220;by_name&#8221;<\/span><span>)<\/span><span>;<\/span><br>\n<span>foreach<\/span> <span>(<\/span>var row <span>in<\/span> view<span>)<\/span><br>\n<span>{<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span><span>&#8220;Row ID: &#8220;<\/span> <span>+<\/span> row<span>.<\/span><span>ItemId<\/span><span>)<\/span><span>;<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span><span>&#8220;Row Key: &#8220;<\/span> <span>+<\/span> row<span>.<\/span><span>ViewKey<\/span><span>[<\/span><span>0<\/span><span>]<\/span><span>)<\/span><span>;<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span><span>&#8220;Row Value: &#8220;<\/span> <span>+<\/span> row<span>.<\/span><span>Info<\/span><span>[<\/span><span>&#8220;value&#8221;<\/span><span>]<\/span><span>)<\/span><span>;<\/span><br>\n<span>}<\/span><\/p>\n\n\n\n<p>The IViewRow interface defines properties for the &#8220;id&#8221; and &#8220;key&#8221; properties in the row and additionally provides a dictionary with access to each property in the row.\u00a0<\/p>\n\n\n\n<p>If you wanted to retrieve the original documents associated with each of the rows, you would take the row.ItemId and query using the client&#8217;s <em>Get<\/em> method.<\/p>\n\n\n\n<p><span>foreach<\/span> <span>(<\/span>var row <span>in<\/span> view<span>)<\/span><br>\n<span>{<\/span><br>\n\u00a0 \u00a0 var item <span>=<\/span> client<span>.<\/span><span>Get<\/span><span>(<\/span>row<span>.<\/span><span>ItemId<\/span><span>)<\/span><span>;<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span>item<span>)<\/span><span>;<\/span><br>\n<span>}<\/span><\/p>\n\n\n\n<p>Alternatively, you could do a multi-get to retrieve all documents in one call. Note that with this version, the view is queried when the LINQ <em>Select<\/em> method is called, as opposed to above when the enumeration of view queries the view.\u00a0 In either case, it&#8217;s the enumeration of the <em>IView <\/em>instance that triggers the request to the view on the server.<\/p>\n\n\n\n<p>var docs <span>=<\/span> client<span>.<\/span><span>Get<\/span><span>(<\/span>view<span>.<\/span><span>Select<\/span><span>(<\/span>r <span>=&gt;<\/span> r<span>.<\/span><span>ItemId<\/span><span>)<\/span><span>)<\/span><span>;<\/span><br>\n<span>foreach<\/span> <span>(<\/span>var doc <span>in<\/span> docs<span>)<\/span><br>\n<span>{<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span>doc<span>)<\/span><span>;<\/span><br>\n<span>}<\/span><\/p>\n\n\n\n<p>Now, let&#8217;s say you have a <em>Beer <\/em>class in your application and you want to get instances of <em>Beer<\/em>s<em> <\/em>when you iterate over the view.\u00a0<\/p>\n\n\n\n<p><span>public<\/span> <span>class<\/span> Beer<br>\n<span>{<\/span><br>\n\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;name&#8221;<\/span><span>)<\/span><span>]<\/span><br>\n\u00a0 \u00a0 <span>public<\/span> <span>string<\/span> Name <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span>\n<\/p>\n\n\n\n<p>\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;abc&#8221;<\/span><span>)<\/span><span>]<\/span> \u00a0 \u00a0 \u00a0 \u00a0<br>\n\u00a0 \u00a0 <span>public<\/span> <span>float<\/span> ABV <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span><\/p>\n\n\n\n<p>\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;brewery_id&#8221;<\/span><span>)<\/span><span>]<\/span><br>\n\u00a0 \u00a0 <span>public<\/span> <span>string<\/span> BreweryId <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span><\/p>\n\n\n\n<p>\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;type&#8221;<\/span><span>)<\/span><span>]<\/span><br>\n\u00a0 \u00a0 <span>public<\/span> <span>string<\/span> Type <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span><\/p>\n\n\n\n<p>\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;description&#8221;<\/span><span>)<\/span><span>]<\/span><br>\n\u00a0 \u00a0 <span>public<\/span> <span>string<\/span> Description <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span><\/p>\n\n\n\n<p><span>}<\/span><\/p>\n\n\n\n<p>The Beer class makes use of Newtonsoft.Json for serializing and deserializing JSON.\u00a0 The client library also has a dependency on this assembly.<\/p>\n\n\n\n<p>With the new <em>Beer <\/em>class, it&#8217;s possible to query the view and tell the client that <em>Beer<\/em> instances should be the item returned by each enumeration of a row in the view.<\/p>\n\n\n\n<p>var view <span>=<\/span> client<span>.<\/span><span>GetView<\/span><span>&lt;<\/span>Beer<span>&gt;<\/span><span>(<\/span><span>&#8220;beer&#8221;<\/span>, <span>&#8220;by_name&#8221;<\/span>, <span>true<\/span><span>)<\/span><span>;<\/span>\n<\/p>\n\n\n\n<p><span>foreach<\/span><span>(<\/span>var beer <span>in<\/span> view<span>)<\/span><br>\n<span>{<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span>beer<span>.<\/span><span>Name<\/span><span>)<\/span><span>;<\/span><br>\n<span>}<\/span><\/p>\n\n\n\n<p>Two important changes to note in the snippet above.\u00a0 First, when <em>GetView<\/em> is called, <em>Beer<\/em> is specified as the generic type.\u00a0 Second, the third argument supplied to <em>GetView<\/em> tells the client to <em>Get<\/em> the original document and deserialize it to an instance of <em>T<\/em> or in this case, a <em>Beer<\/em>.<\/p>\n\n\n\n<p>In the case where the value returned by a row is a projection of the indexed document, then strongly typed views are still possible.\u00a0<\/p>\n\n\n\n<p><span>function<\/span> <span>(<\/span>doc<span>,<\/span> meta<span>)<\/span> <span>{<\/span><br>\n\u00a0 <span>if<\/span> <span>(<\/span>doc.<span>name<\/span> <span>&amp;&amp;<\/span> doc.<span>type<\/span> <span>&amp;&amp;<\/span> doc.<span>type<\/span> <span>==<\/span> <span>&#8220;beer&#8221;<\/span><span>)<\/span> <span>{<\/span><br>\n\u00a0 \u00a0 emit<span>(<\/span>doc.<span>name<\/span><span>,<\/span> <span>{<\/span> <span>&#8220;beer_name&#8221;<\/span> <span>:<\/span> doc.<span>name<\/span><span>,<\/span> <span>&#8220;beer_style&#8221;<\/span> <span>:<\/span> doc.<span>style<\/span> <span>}<\/span><span>)<\/span><span>;<\/span><br>\n\u00a0 <span>}<\/span> \u00a0 \u00a0<br>\n<span>}<\/span><\/p>\n\n\n\n<p>Since the view now includes the beer name and style (this is an admittedly contrived use of projections) it is possible to strongly type the view query results &#8211; in this case to a <em>BeerProjection<\/em> class.\u00a0<\/p>\n\n\n\n<p><span>public<\/span> <span>class<\/span> BeerProjection<br>\n<span>{<\/span><br>\n\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;beer_name&#8221;<\/span><span>)<\/span><span>]<\/span><br>\n\u00a0 \u00a0 <span>public<\/span> <span>string<\/span> Name <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span>\n<\/p>\n\n\n\n<p>\u00a0 \u00a0 <span>[<\/span>JsonProperty<span>(<\/span><span>&#8220;beer_style&#8221;<\/span><span>)<\/span><span>]<\/span><br>\n\u00a0 \u00a0 <span>public<\/span> <span>string<\/span> Style <span>{<\/span> get<span>;<\/span> set<span>;<\/span> <span>}<\/span><br>\n<span>}<\/span><\/p>\n\n\n\n<p>Removing the Boolean argument from the <em>GetView<\/em> call leaves the default of false and the client will then attempt to deserialize the value property of each view row into an instance of <em>T<\/em>, or in this case a <em>BeerProjection<\/em>.<\/p>\n\n\n\n<p>var view <span>=<\/span> client<span>.<\/span><span>GetView<\/span><span>&lt;<\/span>BeerProjection<span>&gt;<\/span><span>(<\/span><span>&#8220;beer&#8221;<\/span>, <span>&#8220;by_name&#8221;<\/span><span>)<\/span><span>;<\/span>\n<\/p>\n\n\n\n<p><span>foreach<\/span><span>(<\/span>var beer <span>in<\/span> view<span>)<\/span><br>\n<span>{<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span>beer<span>.<\/span><span>Name<\/span><span>)<\/span><span>;<\/span><br>\n<span>}<\/span><\/p>\n\n\n\n<p>Finally, if you wanted to perform a generic multi-get and use your own deserialization techniques, you could do something like the following:<\/p>\n\n\n\n<p>var view <span>=<\/span> client<span>.<\/span><span>GetView<\/span><span>(<\/span><span>&#8220;beer&#8221;<\/span>, <span>&#8220;by_name&#8221;<\/span><span>)<\/span><span>;<\/span><br>\nvar beers <span>=<\/span> client<span>.<\/span><span>Get<\/span><span>(<\/span>view<span>.<\/span><span>Select<\/span><span>(<\/span>v <span>=&gt;<\/span> v<span>.<\/span><span>ItemId<\/span><span>)<\/span><span>)<\/span><span>.<\/span><span>Select<\/span><span>(<\/span>d <span>=&gt;<\/span><br>\n\u00a0 \u00a0 \u00a0 \u00a0 JsonConvert<span>.<\/span><span>DeserializeObject<\/span><span>&lt;<\/span>Beer<span>&gt;<\/span><span>(<\/span>d<span>.<\/span><span>Value<\/span> <span>as<\/span> <span>string<\/span><span>)<\/span><br>\n\u00a0 \u00a0 <span>)<\/span><span>;<\/span>\n<\/p>\n\n\n\n<p><span>foreach<\/span><span>(<\/span>var beer <span>in<\/span> beers<span>)<\/span><br>\n<span>{<\/span><br>\n\u00a0 \u00a0 Console<span>.<\/span><span>WriteLine<\/span><span>(<\/span>beer<span>.<\/span><span>Name<\/span><span>)<\/span><span>;<\/span><br>\n<span>}<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest bits of the Couchbase .NET Client Library support a few different view querying options.\u00a0 In this post, I&#8217;ll describe those options in detail.\u00a0 To play along at home, make sure you have the latest Couchbase Server installed with the beer-sample sample bucket.\u00a0 I&#8217;ve added a view named &#8220;by_name&#8221; to the beer-sample bucket in [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":18,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_acf":"","footnotes":""},"categories":[1],"tags":[],"ppma_author":[63],"class_list":["post-214","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Strongly Typed Views with the .NET Client Library - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/strongly-typed-views-net-client-library\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Strongly Typed Views with the .NET Client Library\" \/>\n<meta property=\"og:description\" content=\"The latest bits of the Couchbase .NET Client Library support a few different view querying options.\u00a0 In this post, I&#8217;ll describe those options in detail.\u00a0 To play along at home, make sure you have the latest Couchbase Server installed with the beer-sample sample bucket.\u00a0 I&#8217;ve added a view named &#8220;by_name&#8221; to the beer-sample bucket in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/strongly-typed-views-net-client-library\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-16T18:04:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"John Zablocki, NET. SDK Developer, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Zablocki, NET. SDK Developer, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/\"},\"author\":{\"name\":\"John Zablocki, NET. SDK Developer, Couchbase\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/ee312fb775c13d20a32f1d455888a282\"},\"headline\":\"Strongly Typed Views with the .NET Client Library\",\"datePublished\":\"2014-12-16T18:04:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/\"},\"wordCount\":753,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/\",\"name\":\"Strongly Typed Views with the .NET Client Library - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2014-12-16T18:04:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/strongly-typed-views-net-client-library\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Strongly Typed Views with the .NET Client Library\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/ee312fb775c13d20a32f1d455888a282\",\"name\":\"John Zablocki, NET. SDK Developer, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c5a77152c796c424a3f7f6d9fa31a999a7fe115d64c2acc93c4c0c014e6512a?s=96&d=mm&r=g201925d9efc4992ce80385b76fdea34b\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c5a77152c796c424a3f7f6d9fa31a999a7fe115d64c2acc93c4c0c014e6512a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c5a77152c796c424a3f7f6d9fa31a999a7fe115d64c2acc93c4c0c014e6512a?s=96&d=mm&r=g\",\"caption\":\"John Zablocki, NET. SDK Developer, Couchbase\"},\"description\":\"John Zablocki is a NET. SDK Developer at Couchbase. John is also the organizer of Beantown ALT.NET and a former adjunct at Fairfield University. You can also check out the book on Amazon named \\\"Couchbase Essentials\\\" which explains how to install and configure Couchbase Server.\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/ko\\\/author\\\/john-zablocki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Strongly Typed Views with the .NET Client Library - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/ko\/strongly-typed-views-net-client-library\/","og_locale":"ko_KR","og_type":"article","og_title":"Strongly Typed Views with the .NET Client Library","og_description":"The latest bits of the Couchbase .NET Client Library support a few different view querying options.\u00a0 In this post, I&#8217;ll describe those options in detail.\u00a0 To play along at home, make sure you have the latest Couchbase Server installed with the beer-sample sample bucket.\u00a0 I&#8217;ve added a view named &#8220;by_name&#8221; to the beer-sample bucket in [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/strongly-typed-views-net-client-library\/","og_site_name":"The Couchbase Blog","article_published_time":"2014-12-16T18:04:28+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"John Zablocki, NET. SDK Developer, Couchbase","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Zablocki, NET. SDK Developer, Couchbase","Est. reading time":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/"},"author":{"name":"John Zablocki, NET. SDK Developer, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ee312fb775c13d20a32f1d455888a282"},"headline":"Strongly Typed Views with the .NET Client Library","datePublished":"2014-12-16T18:04:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/"},"wordCount":753,"commentCount":6,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","articleSection":["Uncategorized"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/","url":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/","name":"Strongly Typed Views with the .NET Client Library - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","datePublished":"2014-12-16T18:04:28+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/strongly-typed-views-net-client-library\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Strongly Typed Views with the .NET Client Library"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","width":"1024","height":"1024","caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ee312fb775c13d20a32f1d455888a282","name":"John Zablocki, NET. SDK Developer, Couchbase","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/secure.gravatar.com\/avatar\/8c5a77152c796c424a3f7f6d9fa31a999a7fe115d64c2acc93c4c0c014e6512a?s=96&d=mm&r=g201925d9efc4992ce80385b76fdea34b","url":"https:\/\/secure.gravatar.com\/avatar\/8c5a77152c796c424a3f7f6d9fa31a999a7fe115d64c2acc93c4c0c014e6512a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8c5a77152c796c424a3f7f6d9fa31a999a7fe115d64c2acc93c4c0c014e6512a?s=96&d=mm&r=g","caption":"John Zablocki, NET. SDK Developer, Couchbase"},"description":"John Zablocki is a NET. SDK Developer at Couchbase. John is also the organizer of Beantown ALT.NET and a former adjunct at Fairfield University. You can also check out the book on Amazon named \"Couchbase Essentials\" which explains how to install and configure Couchbase Server.","url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/john-zablocki\/"}]}},"acf":[],"authors":[{"term_id":63,"user_id":22,"is_guest":0,"slug":"john-zablocki","display_name":"John Zablocki, NET. SDK Developer, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","author_category":"","first_name":"John","last_name":"Zablocki","user_url":"","job_title":"","description":"John Zablocki is a NET. SDK Developer at Couchbase. John is also the organizer of Beantown ALT.NET and a former adjunct at Fairfield University.\r\nYou can also check out the book on Amazon named \"Couchbase Essentials\" which explains how to install and configure Couchbase Server."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/18"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=214"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}