Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/09 14:37:29 (15 years ago)
Author:
svonolfe
Message:

Implemented large parts of the security DAL (#597)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAccess.ADOHelper/3.2/ManyToManyRelationHelper.cs

    r1580 r1656  
    2222    }
    2323
    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) {
    2532      //firstly check for created references
    2633      IList<Guid> existing =
    27         this.GetRelationships(objectA);
     34        this.GetRelationships(objectA); 
    2835
    2936      foreach (Guid relationship in relationships) {
     
    3340          rel.Id = objectA;
    3441          rel.Id2 = relationship;
     42          if(additionalAttributes != null)
     43            rel.AdditionalAttributes =
     44              new List<object>(additionalAttributes);
    3545         
    3646          RowT inserted =
Note: See TracChangeset for help on using the changeset viewer.