Geeks With Blogs
Sudheer Kumar ASP.Net, C#, BizTalk, MSBuild, WPF, WCF, WF.... November 2008 Entries
Dynamic LINQ
There are ways LINQ can query completely dynamically from Database. I had requirement to get a column value of a table in a generic and dynamic manner for a given key value. Here I pass the table type (LINQ type) and key value to retrieve other column values of the table in a totally dynamic manner. private string GetColumnValue(DataContext dc, Type tableType, Type keyColumnType, string keyColumnName, object objectValue, string getColumnName) { string getColumnValue = null; IQueryable queryableData ......

Posted On Tuesday, November 25, 2008 6:35 AM

Copyright © Sudheer Kumar | Powered by: GeeksWithBlogs.net