Skip to content

Methods on type are not accessible error #46

@jotab123

Description

@jotab123

Trying to call a method in Where clause returns an error: "Methods on type 'SampleModel' are not accessible"

If you add a method to your SampleModel test class:

public class SampleModel 
{
     //.....
     public bool TestMethod(SampleModel other)
     {
          return true;
     }
}

This test should fail:

var testUsers = User.GenerateSampleModels(100).AsQueryable();
var testUsers2 = User.GenerateSampleModels(100).ToArray();

var results = testUsers.Where("TestMethod(@0)", testUsers2);

EntityFramework 1.0.1
Linq Dynamic Core 1.0.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions