Skip to content

Camelcase convention not working for quering condition #25

Description

@lneninger

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" } } );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions