Changeset 1656 for trunk/sources/HeuristicLab.DataAccess.ADOHelper
- Timestamp:
- 04/24/09 14:37:29 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.DataAccess.ADOHelper/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAccess.ADOHelper/3.2/ManyToManyRelation.cs
r1580 r1656 8 8 public class ManyToManyRelation: PersistableObject { 9 9 public Guid Id2 { get; set; } 10 11 public IList<object> AdditionalAttributes { get; set; } 10 12 } 11 13 } -
trunk/sources/HeuristicLab.DataAccess.ADOHelper/3.2/ManyToManyRelationHelper.cs
r1580 r1656 22 22 } 23 23 24 public void UpdateRelationships(Guid objectA, IList<Guid> relationships) { 24 public void UpdateRelationships(Guid objectA, 25 IList<Guid> relationships) { 26 UpdateRelationships(objectA, relationships, null); 27 } 28 29 public void UpdateRelationships(Guid objectA, 30 IList<Guid> relationships, 31 IList<object> additionalAttributes) { 25 32 //firstly check for created references 26 33 IList<Guid> existing = 27 this.GetRelationships(objectA); 34 this.GetRelationships(objectA); 28 35 29 36 foreach (Guid relationship in relationships) { … … 33 40 rel.Id = objectA; 34 41 rel.Id2 = relationship; 42 if(additionalAttributes != null) 43 rel.AdditionalAttributes = 44 new List<object>(additionalAttributes); 35 45 36 46 RowT inserted =
Note: See TracChangeset
for help on using the changeset viewer.