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

the propertyname dosen't convert to the alias in class ModifierExpression class. #69

Open
tinysnake opened this issue Apr 13, 2011 · 0 comments

Comments

@tinysnake
Copy link

I add a MongoConfigurationMap to the MongoConfiguration trying to let the prop name starts with lower case and shorter.when I insert a model to mongodb,it works. it make my prop name from" Comments" to "comms". great job!
I wrote the code like this when I Update the model,and push some comment into the comment list:

Collection.Update(new { _id = item.ID }, act =>
{
        act.PushAll(i => i.Comments, tba.ToArray());
 }, false, false);

I run this code, and I found a new field added in my data in my mongodb called "Comments", and my "comms" field which registered in the MongoConfiguration is still a empty array.

I find the code in the ModifierExpression class,it ask the ReflectionHelper.FindProperty method and returns the real name of the C# model,but you don't convert it to the alias.

I don't know this is a bug or not.

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