mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
added marr.datamapper source code for easy debugging.
This commit is contained in:
parent
58a05fcef8
commit
3cdff3bb71
96 changed files with 9198 additions and 363 deletions
31
Marr.Data/EntityReference.cs
Normal file
31
Marr.Data/EntityReference.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
|
||||
namespace Marr.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Stores an entity along with all of its 1-M IList references.
|
||||
/// </summary>
|
||||
public class EntityReference
|
||||
{
|
||||
public EntityReference(object entity)
|
||||
{
|
||||
Entity = entity;
|
||||
ChildLists = new Dictionary<string, IList>();
|
||||
}
|
||||
|
||||
public object Entity { get; private set; }
|
||||
public Dictionary<string, IList> ChildLists { get; private set; }
|
||||
|
||||
public void AddChildList(string memberName, IList list)
|
||||
{
|
||||
if (ChildLists.ContainsKey(memberName))
|
||||
ChildLists[memberName] = list;
|
||||
else
|
||||
ChildLists.Add(memberName, list);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue