title: Sharing Linq to SQL entities across RIA services
body: <p>I am creating very thin DTO's and I'm wondering if there is a way of sharing the Linq-to SQL entities themselves.  I've tried.  I created a metadata class inside of a partial class and set the key annotations.  Then I tried to expose the entities in a query from my RIA service.  I get on error though that complains about <code>System.Data.Linq</code> in the generated code.  This makes sense, but is there a way to do this without carrying over dependencies on this an other libraries not available in Silverlight?  </p>
  
  <p>Note, I'm not using the entity framework because it is way to big for my current project. I'd rather use the thin DTO's than bring in EF for <em>this</em> project.</p>
  
  <p><strong>Edits:</strong></p>
  
  <p>My question is more generally this: Can LINQ to SQL entities be used directly as RIA Services DTO's and shared by a service?</p>