{"id":82,"date":"2009-07-15T09:41:00","date_gmt":"2009-07-15T09:41:00","guid":{"rendered":"https:\/\/wdev-blog.azurewebsites.net\/index.php\/2009\/07\/15\/using-linq-to-sql-classes-as-datacontract-in-wcf\/"},"modified":"2009-07-15T09:41:00","modified_gmt":"2009-07-15T09:41:00","slug":"using-linq-to-sql-classes-as-datacontract-in-wcf","status":"publish","type":"post","link":"http:\/\/panahy.nl\/index.php\/2009\/07\/15\/using-linq-to-sql-classes-as-datacontract-in-wcf\/","title":{"rendered":"Using Linq-To-SQL classes as DataContract in WCF"},"content":{"rendered":"<p>Coming accross a nice tutorial from <a href=\"http:\/\/silverlight.net\/blogs\/jesseliberty\/archive\/2008\/04\/04\/tutorial-data-from-a-sql-db-via-wcf-using-linq.aspx\">Jesse Liberty<\/a><\/p>\n<p>He describes the trick to get the Link-To-SQL data classes generated to be consumed as DataContract. In his document he points out that you need to set the <span style=\"FONT-WEIGHT: bold\">Serialization Mode<\/span> property of the dbml surface to <span style=\"FONT-WEIGHT: bold\">Unidirectional<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Coming accross a nice tutorial from Jesse Liberty He describes the trick to get the Link-To-SQL data classes generated to be consumed as DataContract. In his document he points out that you need to set the Serialization Mode property of the dbml surface to Unidirectional.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[33,20],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Pouya Panahy","author_link":"http:\/\/panahy.nl\/index.php\/author\/pouya\/"},"uagb_comment_info":0,"uagb_excerpt":"Coming accross a nice tutorial from Jesse Liberty He describes the trick to get the Link-To-SQL data classes generated to be consumed as DataContract. In his document he points out that you need to set the Serialization Mode property of the dbml surface to Unidirectional.","_links":{"self":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/82"}],"collection":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":0,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"wp:attachment":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}