Is there an easy way to convert System.Data.DataTable to a linq entity? -


Is there an easy way to take a datatelle and put it in your unit type?

I have a unit called a sampling, yet it is on a point returned through layering in the form of a datatellite- I woud, if possible, put it in its unit type Should be enabled?

Thanks

You probably can not be cast because your organization probably There is no legacy with Datarau (or datatelle, whatever).

Assume

  class post {public entry ID (get; private set;} public string title {get; set;} public post (id) { Id = id;}}  

You want something

  foreach (var rows) {posts.Add (new post (convert toInt32 (line [ 0])} {title = line [1] .tostring ()};}  

No fun, I agree. That's NHibernate (and the younger brother unit framework and this cousin Linq2SQL).


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -