1

That is my code and it doesn't work like this, please help me !!!

public class BL: IBL, IDisposable
{

    private TradeSoftDBEntities entities;

    public List<Roles> TakeRoles()
    {

        if (entities == null) 
            entities = new TradeSoftDBEntities();

        ObjectQuery<Roles> roles = entities.Rolis;

        roles.MergeOption = MergeOption.NoTracking;
Marek Musielak
  • 26,832
  • 8
  • 72
  • 80
  • This link might help you : http://stackoverflow.com/questions/11252096/how-to-convert-dbset-in-entity-framework-to-objectquery – Réda Mattar Oct 30 '13 at 16:28

0 Answers0