[CSHARP-598] Indexing in Typed Update Builder Breaks with Variable Created: 10/Oct/12  Updated: 12/Oct/12  Resolved: 11/Oct/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.6
Fix Version/s: 1.6.1

Type: Bug Priority: Major - P3
Reporter: Craig Wilson Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

static void Main()

{ int index = 10; var update = Update<TestClass>.Set(x => x.List[index].Name, "Blah"); Console.WriteLine(update.ToString()); }

private class TestClass
{
public ObjectId Id

{ get; set; }

public List<SubTestClass> List { get; set; }

}

private class SubTestClass
{
public string Name

{ get; set; }

}



 Comments   
Comment by Craig Wilson [ 12/Oct/12 ]

pushed to master and x2.0

Comment by auto [ 12/Oct/12 ]

Author:

{u'date': u'2012-10-12T07:21:18-07:00', u'email': u'craiggwilson@gmail.com', u'name': u'Craig Wilson'}

Message: CSHARP-598: corrected issue with not evaluating member expressions that contain variables and not constants.

Conflicts:
MongoDB.Driver/Builders/UpdateBuilder.cs
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/fcf614dac7e47f4660b011b626837617957beb18

Comment by auto [ 12/Oct/12 ]

Author:

{u'date': u'2012-10-11T11:14:20-07:00', u'email': u'craiggwilson@gmail.com', u'name': u'Craig Wilson'}

Message: CSHARP-598: corrected issue with not evaluating member expressions that contain variables and not constants.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7f57b3dbcae753f6e37bca0d9e6b3abf63d2749e

Comment by Craig Wilson [ 11/Oct/12 ]

In code review.

Generated at Wed Feb 07 21:37:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.