Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camelcase convention not working for quering condition #25

Open
lneninger opened this issue Jul 23, 2017 · 0 comments
Open

Camelcase convention not working for quering condition #25

lneninger opened this issue Jul 23, 2017 · 0 comments

Comments

@lneninger
Copy link

Hi. I'm using CamelCase naming convention. That work ok for entity retrieved and sent but I facing error of kind: property not found when using the Where function into the query. Example below:
` public async Task<IEnumerable> GetByCustomer(Guid customerId)
{
try
{
var query = new EntityQuery("GetAll");
query = query.Where(o => o.customerId == customerId);
var qr = await this.EntityManager.ExecuteQuery(query);

            var result = qr.ToList();
            return result;
        }
        catch (Exception ex)
        {
            throw;
        }
    }`

this example fail because customerId is not part of TrsansportReceipt at server side but CustomerId do.

I use camelcasing as follow:
var namingConvention = NamingConvention.CamelCaseProperties.WithClientServerNamespaceMapping( new Dictionary<string, string> { { "Business.DomainModels", "DomainModel.Models" } } );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant