what i want to achieve :
Type type = typeof(Entity);
var result =_unitofwork.BaseRepositoryFor<type>.createEntity(entity);
I have tried method info and few more examples but couldnt endup working.
CreateEntity/deleteEntity all back end stuffs are implemented generically butI need to add somehow the type inside my generic method.
what is working fine :
MyDb _db= new MyDb();
private static T entity;
private static BaseRepositoryFor<T>_dynamic_class = new BaseRepository<T>(_db);
var result =_unitofwork.BaseRepositoryFor<T>.createEntity(entity);
But I need to Type object instead of 'T' in my method.
Duplicate ISSUE :I already checked that duplicate question. but it dint actually solved it my problem since i have some extension methods to create/delete/update/get and i need to get those methods name in intelligence.