Click here to Skip to main content
15,889,651 members

Comments by bora1891 (Top 13 by date)

bora1891 7-Oct-15 8:48am View    
Thank you for reply.
But I think I cannot get the "Class" name. If i get the class name (like when i write the class name statistically as an input) this part will work:
public class LINQDynamic<-TEntity-> where TEntity: class
{

public static object GetQueryResult(object pkKey,Type type, params object[] pkKeys)
{
//TODO
}

So I am even not sure that I can get the class name from table type.And maybe I make some conversition type to real class but I don't know how to make and I'm notsure this is possible becasue my entityType is dynamic.
The LINQDynamic, wait a class.
bora1891 7-Oct-15 2:45am View    
My problem is here;
var test = LINQDynamic<-?->.GetQueryResult();

which is the question mark.I want to pass my Type which is entityTpe.Is there a way to pass my entityType variable?
bora1891 13-Oct-14 7:29am View    
Ok sinisa,thxs for interesting my subject
bora1891 12-Oct-14 7:52am View    
Sinisa,
Can you give any code to understand well?
And maybe you gave the code solves my problem :)
bora1891 10-Oct-14 8:59am View    
I want to transfer into the another grid.But the grid has the other form.
And I tried your suggestion but I get an error.The Error message in the error list;
'object' does not contain a definition for 'Checked' and no extension method 'Checked' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?).
Can you explain to me your this suggestion I don't know this way :/

Like this:
foreach loop
newGrid.DataSource.ImportRow(originalGridRow) -- ImportRow is DataTable method so you'll need to cast accordingly