Class EntityCollection
Inheritance
System.Object
System.Collections.Generic.LinkedList<
Entity>
EntityCollection
Implements
System.Collections.Generic.ICollection<
Entity>
System.Collections.ICollection
System.Collections.Generic.IReadOnlyCollection<
Entity>
System.Collections.Generic.IEnumerable<
Entity>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.Generic.ICollection<Terrasoft.Core.Entities.Entity>.Add(Terrasoft.Core.Entities.Entity)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.Contains(Terrasoft.Core.Entities.Entity)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.CopyTo(Terrasoft.Core.Entities.Entity[], System.Int32)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.Find(Terrasoft.Core.Entities.Entity)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.FindLast(Terrasoft.Core.Entities.Entity)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.GetEnumerator()
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.Generic.IEnumerable<Terrasoft.Core.Entities.Entity>.GetEnumerator()
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.OnDeserialization(System.Object)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.Count
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.First
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.Last
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.Generic.ICollection<Terrasoft.Core.Entities.Entity>.IsReadOnly
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.LinkedList<Terrasoft.Core.Entities.Entity>.System.Collections.ICollection.SyncRoot
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Terrasoft.Core.dll
Syntax
public class EntityCollection : LinkedList<Entity>, ICollection<Entity>, ICollection, IReadOnlyCollection<Entity>, IEnumerable<Entity>, IEnumerable, ISerializable, IDeserializationCallback
Constructors
EntityCollection(UserConnection, Guid)
Creates a set of objects that represent records in the database table.
Declaration
public EntityCollection(UserConnection userConnection, Guid schemaUId)
Parameters
Type |
Name |
Description |
UserConnection |
userConnection |
User connection.
|
System.Guid |
schemaUId |
Unique identifier of the entity schema.
|
EntityCollection(UserConnection, String)
Creates a set of objects that represent records in the database table.
Declaration
public EntityCollection(UserConnection userConnection, string schemaName)
Parameters
Type |
Name |
Description |
UserConnection |
userConnection |
User connection.
|
System.String |
schemaName |
Name of the entity schema.
|
EntityCollection(UserConnection, String, String)
Creates a set of objects that represent records in the database table.
Declaration
public EntityCollection(UserConnection userConnection, string schemaName, string entitySchemaManagerName)
Parameters
Type |
Name |
Description |
UserConnection |
userConnection |
User connection.
|
System.String |
schemaName |
Name of the entity schema.
|
System.String |
entitySchemaManagerName |
Name of the entity schema manager.
|
EntityCollection(UserConnection, EntitySchema)
Creates a set of objects that represent records in the database table.
Declaration
public EntityCollection(UserConnection userConnection, EntitySchema schema)
Parameters
Properties
Item[Int32]
Declaration
public Entity this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Schema
Declaration
public EntitySchema Schema { get; set; }
Property Value
Methods
Add(Entity)
Declaration
public void Add(Entity value)
Parameters
Type |
Name |
Description |
Entity |
value |
|
AddAfter(LinkedListNode<Entity>, LinkedListNode<Entity>)
Declaration
public void AddAfter(LinkedListNode<Entity> node, LinkedListNode<Entity> newNode)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
System.Collections.Generic.LinkedListNode<Entity> |
newNode |
|
AddAfter(LinkedListNode<Entity>, Entity)
Declaration
public LinkedListNode<Entity> AddAfter(LinkedListNode<Entity> node, Entity value)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
Entity |
value |
|
Returns
Type |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
|
AddBefore(LinkedListNode<Entity>, LinkedListNode<Entity>)
Declaration
public void AddBefore(LinkedListNode<Entity> node, LinkedListNode<Entity> newNode)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
System.Collections.Generic.LinkedListNode<Entity> |
newNode |
|
AddBefore(LinkedListNode<Entity>, Entity)
Declaration
public LinkedListNode<Entity> AddBefore(LinkedListNode<Entity> node, Entity value)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
Entity |
value |
|
Returns
Type |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
|
AddFirst(LinkedListNode<Entity>)
Declaration
public void AddFirst(LinkedListNode<Entity> node)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
AddFirst(Entity)
Declaration
public LinkedListNode<Entity> AddFirst(Entity value)
Parameters
Type |
Name |
Description |
Entity |
value |
|
Returns
Type |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
|
AddLast(LinkedListNode<Entity>)
Declaration
public void AddLast(LinkedListNode<Entity> node)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
AddLast(Entity)
Declaration
public LinkedListNode<Entity> AddLast(Entity value)
Parameters
Type |
Name |
Description |
Entity |
value |
|
Returns
Type |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
|
Clear()
Declaration
Find(Object)
Declaration
public Entity Find(object keyValue)
Parameters
Type |
Name |
Description |
System.Object |
keyValue |
|
Returns
Find(String, Object)
Declaration
public Entity Find(string columnName, object value)
Parameters
Type |
Name |
Description |
System.String |
columnName |
|
System.Object |
value |
|
Returns
Find(EntitySchemaColumn, Object)
Declaration
public Entity Find(EntitySchemaColumn column, object value)
Parameters
Returns
FindOrFetch(Object)
Declaration
public Entity FindOrFetch(object keyValue)
Parameters
Type |
Name |
Description |
System.Object |
keyValue |
|
Returns
FindOrFetch(String, Object)
Declaration
public Entity FindOrFetch(string columnName, object value)
Parameters
Type |
Name |
Description |
System.String |
columnName |
|
System.Object |
value |
|
Returns
FindOrFetch(EntitySchemaColumn, Object)
Declaration
public Entity FindOrFetch(EntitySchemaColumn column, object value)
Parameters
Returns
IndexOf(Entity)
Declaration
public int IndexOf(Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type |
Description |
System.Int32 |
|
Load(Boolean)
Declaration
public void Load(bool takeDisplayLookupValues = true)
Parameters
Type |
Name |
Description |
System.Boolean |
takeDisplayLookupValues |
|
Load(Dictionary<String, String>)
Declaration
public void Load(Dictionary<string, string> columnMap)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
Load(DataTable)
Declaration
public void Load(DataTable dataTable)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
Load(DataTable, Boolean)
Declaration
public void Load(DataTable dataTable, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
System.Boolean |
needClear |
|
Load(DataTable, Dictionary<String, String>)
Declaration
public void Load(DataTable dataTable, Dictionary<string, string> columnMap)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
Load(DataTable, Dictionary<String, String>, Boolean)
Declaration
public void Load(DataTable dataTable, Dictionary<string, string> columnMap, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
System.Boolean |
needClear |
|
Load(IDataReader)
Declaration
public void Load(IDataReader dataReader)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
Load(IDataReader, Boolean)
Declaration
public void Load(IDataReader dataReader, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
System.Boolean |
needClear |
|
Load(IDataReader, Dictionary<String, String>)
Declaration
public void Load(IDataReader dataReader, Dictionary<string, string> columnMap)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
Load(IDataReader, Dictionary<String, String>, Boolean)
Declaration
public void Load(IDataReader dataReader, Dictionary<string, string> columnMap, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
System.Boolean |
needClear |
|
LoadShallow(Boolean)
Declaration
public void LoadShallow(bool takeDisplayLookupValues = true)
Parameters
Type |
Name |
Description |
System.Boolean |
takeDisplayLookupValues |
|
LoadShallow(Dictionary<String, String>)
Declaration
public void LoadShallow(Dictionary<string, string> columnMap)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
LoadShallow(DataTable)
Declaration
public void LoadShallow(DataTable dataTable)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
LoadShallow(DataTable, Boolean)
Declaration
public void LoadShallow(DataTable dataTable, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
System.Boolean |
needClear |
|
LoadShallow(DataTable, Dictionary<String, String>)
Declaration
public void LoadShallow(DataTable dataTable, Dictionary<string, string> columnMap)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
LoadShallow(DataTable, Dictionary<String, String>, Boolean)
Declaration
public void LoadShallow(DataTable dataTable, Dictionary<string, string> columnMap, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.DataTable |
dataTable |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
System.Boolean |
needClear |
|
LoadShallow(IDataReader)
Declaration
public void LoadShallow(IDataReader dataReader)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
LoadShallow(IDataReader, Boolean)
Declaration
public void LoadShallow(IDataReader dataReader, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
System.Boolean |
needClear |
|
LoadShallow(IDataReader, Dictionary<String, String>)
Declaration
public void LoadShallow(IDataReader dataReader, Dictionary<string, string> columnMap)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
LoadShallow(IDataReader, Dictionary<String, String>, Boolean)
Declaration
public void LoadShallow(IDataReader dataReader, Dictionary<string, string> columnMap, bool needClear)
Parameters
Type |
Name |
Description |
System.Data.IDataReader |
dataReader |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
columnMap |
|
System.Boolean |
needClear |
|
OnItemDataWritten(EntityCollectionItemDataWrittenEventArgs)
Declaration
protected virtual void OnItemDataWritten(EntityCollectionItemDataWrittenEventArgs e)
Parameters
Order(String, OrderDirection)
Declaration
public void Order(string columnName, OrderDirection orderDirection)
Parameters
Type |
Name |
Description |
System.String |
columnName |
|
OrderDirection |
orderDirection |
|
ReadData(DataReader)
Declaration
public void ReadData(DataReader reader)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
ReadData(DataReader, String)
Declaration
public void ReadData(DataReader reader, string itemNodeName)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
System.String |
itemNodeName |
|
ReadData(DataReader, Entity)
Declaration
public void ReadData(DataReader reader, Entity entity)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
Entity |
entity |
|
ReadData(DataReader, Entity, String)
Declaration
public void ReadData(DataReader reader, Entity entity, string itemNodeName)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
Entity |
entity |
|
System.String |
itemNodeName |
|
ReadDataWithUpdateIfExist(DataReader, String, Boolean, Boolean)
Declaration
public int ReadDataWithUpdateIfExist(DataReader reader, string keyValueName, bool isAutoSave = false, bool useDefRights = true)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
System.String |
keyValueName |
|
System.Boolean |
isAutoSave |
|
System.Boolean |
useDefRights |
|
Returns
Type |
Description |
System.Int32 |
|
ReadDataWithUpdateIfExist(DataReader, String, String, Boolean, Boolean)
Declaration
public int ReadDataWithUpdateIfExist(DataReader reader, string itemNodeName, string keyValueName, bool isAutoSave = false, bool useDefRights = true)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
System.String |
itemNodeName |
|
System.String |
keyValueName |
|
System.Boolean |
isAutoSave |
|
System.Boolean |
useDefRights |
|
Returns
Type |
Description |
System.Int32 |
|
Remove(LinkedListNode<Entity>)
Declaration
public void Remove(LinkedListNode<Entity> node)
Parameters
Type |
Name |
Description |
System.Collections.Generic.LinkedListNode<Entity> |
node |
|
Remove(Entity)
Declaration
public bool Remove(Entity value)
Parameters
Type |
Name |
Description |
Entity |
value |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveFirst()
Declaration
public void RemoveFirst()
RemoveLast()
Declaration
RemoveRange(Entity[])
Declaration
public void RemoveRange(Entity[] entityCollection)
Parameters
Type |
Name |
Description |
Entity[] |
entityCollection |
|
Save()
Declaration
WriteData(DataWriter)
Declaration
public void WriteData(DataWriter writer)
Parameters
Type |
Name |
Description |
DataWriter |
writer |
|
WriteData(DataWriter, String)
Declaration
public void WriteData(DataWriter writer, string itemNodeName)
Parameters
Type |
Name |
Description |
DataWriter |
writer |
|
System.String |
itemNodeName |
|
WriteData(DataWriter, EntitySchema)
Declaration
public void WriteData(DataWriter writer, EntitySchema schema)
Parameters
WriteData(DataWriter, EntitySchema, String)
Declaration
public void WriteData(DataWriter writer, EntitySchema schema, string itemNodeName)
Parameters
Type |
Name |
Description |
DataWriter |
writer |
|
EntitySchema |
schema |
|
System.String |
itemNodeName |
|
Events
ItemDataWritten
Declaration
public event EventHandler<EntityCollectionItemDataWrittenEventArgs> ItemDataWritten
Event Type
Implements
System.Collections.Generic.ICollection<T>
System.Collections.ICollection
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Extension Methods