{"id":1549,"date":"2016-10-14T18:16:58","date_gmt":"2016-10-14T18:16:58","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=1549"},"modified":"2022-02-03T11:24:33","modified_gmt":"2022-02-03T17:24:33","slug":"servicestack-get-net-projects","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/","title":{"rendered":"ServiceStack &#8211; how to get it on your .NET projects"},"content":{"rendered":"<p>So I am using service stack with node quite successfully &#8211; but now I have to make some services. Why not use ServiceStack since its reputation and ease of use (in node anyways) is super easy. Lets get going recording the steps I took &#8211; cause I likely won&#8217;t remember it otherwise.<\/p>\n<ul>\n<li>make a new project (I chose blank)<\/li>\n<li>add service stack to your project\u00a0 OR &#8230; get the template (so skip this step) and it will be added automatically<\/li>\n<li><a href=\"https:\/\/github.com\/ServiceStack\/ServiceStack\/wiki\/Creating-your-first-project\">install the ServiceStackVS templates and make your 1st project<\/a>\n<ul>\n<li><a href=\"https:\/\/dist.nuget.org\/index.html\">I ensured that NuGet was up to date<\/a><\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/download\/details.aspx?id=40764\">I installed the 2013 Shell (Isolated) update as well which is a prerequisite<\/a><\/li>\n<\/ul>\n<\/li>\n<li>I made my first app with it as per the demos at the bottom.<\/li>\n<li><a href=\"https:\/\/github.com\/ServiceStack\/ServiceStack\/wiki\/Swagger-API\">I added to the main app &#8211; Swagger UI<\/a> &#8211; which allows easy testing and documentation for the services. All I had to do was search for &#8220;Configure(&#8221; and add the code the recommend, add a using&#8230;. statement (as per the intellisense when it did not compile &#8211; yes I am very lazy\/efficient)<\/li>\n<li>Bingo &#8211; up and running. Lets get to work (and it does)<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>There are lots of links at the bottom for further discussion. Also if you look carefully, there are links\/text on how to add ServiceStack to an existing project of various form.<\/p>\n<p>Other things I will need is to <a href=\"http:\/\/www.codeproject.com\/Articles\/501608\/Sending-Stream-to-ServiceStack\">receive a filestream as a parameter in ServiceStack<\/a>. And <a href=\"http:\/\/stackoverflow.com\/questions\/28932619\/insert-image-into-sql-server-database-using-parameter-dbtype-stored-procedure\">saving a filestream into a database<\/a>. <a href=\"http:\/\/stackoverflow.com\/questions\/13573380\/inserting-values-into-a-sql-server-database-using-ado-net-via-c-sharp\">General SQL w. parms<\/a> .<\/p>\n<p>If you are wondering on some structure beyond the hello.cs example, <a href=\"http:\/\/stackoverflow.com\/questions\/15231537\/recommended-servicestack-api-structure\">try this<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I am using service stack with node quite successfully &#8211; but now I have to make some services. Why not use ServiceStack since its reputation and ease of use (in node anyways) is super easy. Lets get going recording the steps I took &#8211; cause I likely won&#8217;t remember it otherwise. make a new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1549","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ServiceStack - how to get it on your .NET projects - ELB Solutions.com Inc.<\/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:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ServiceStack - how to get it on your .NET projects - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"So I am using service stack with node quite successfully &#8211; but now I have to make some services. Why not use ServiceStack since its reputation and ease of use (in node anyways) is super easy. Lets get going recording the steps I took &#8211; cause I likely won&#8217;t remember it otherwise. make a new [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-14T18:16:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:33+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"ServiceStack &#8211; how to get it on your .NET projects\",\"datePublished\":\"2016-10-14T18:16:58+00:00\",\"dateModified\":\"2022-02-03T17:24:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/\"},\"wordCount\":271,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/\",\"name\":\"ServiceStack - how to get it on your .NET projects - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2016-10-14T18:16:58+00:00\",\"dateModified\":\"2022-02-03T17:24:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/servicestack-get-net-projects\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ServiceStack &#8211; how to get it on your .NET projects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ServiceStack - how to get it on your .NET projects - ELB Solutions.com Inc.","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:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/","og_locale":"en_US","og_type":"article","og_title":"ServiceStack - how to get it on your .NET projects - ELB Solutions.com Inc.","og_description":"So I am using service stack with node quite successfully &#8211; but now I have to make some services. Why not use ServiceStack since its reputation and ease of use (in node anyways) is super easy. Lets get going recording the steps I took &#8211; cause I likely won&#8217;t remember it otherwise. make a new [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2016-10-14T18:16:58+00:00","article_modified_time":"2022-02-03T17:24:33+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"ServiceStack &#8211; how to get it on your .NET projects","datePublished":"2016-10-14T18:16:58+00:00","dateModified":"2022-02-03T17:24:33+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/"},"wordCount":271,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/","url":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/","name":"ServiceStack - how to get it on your .NET projects - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2016-10-14T18:16:58+00:00","dateModified":"2022-02-03T17:24:33+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/servicestack-get-net-projects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"ServiceStack &#8211; how to get it on your .NET projects"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=1549"}],"version-history":[{"count":5,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1549\/revisions"}],"predecessor-version":[{"id":1554,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1549\/revisions\/1554"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=1549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=1549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=1549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}