Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate lambda with Reflection Info

I have Enitity Type, Name of Primary Key and Guid of Primary Id. I want to get element of such Id in LinqToSql.

model.GetTable<T>().Where(t => here equality  );

I think I need to generate that Expression myself, but I dont know how :(

like image 476
Igor Golodnitsky Avatar asked Apr 23 '26 23:04

Igor Golodnitsky


1 Answers

http://blog.dynback.com/index.php/2008/11/architecture/database/repository-in-linq-to-sql-getbyid-part/

Result of investigation! Take a look!

like image 100
Igor Golodnitsky Avatar answered Apr 27 '26 10:04

Igor Golodnitsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!