Class EntityRepository
Inheritance
System.Object
EntityRepository
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AltV.Net.EntitySync.dll
Syntax
public class EntityRepository : IEntityRepository
Constructors
|
Improve this Doc
View Source
EntityRepository(EntityThreadRepository[], Func<IEntity, UInt64, UInt64>, Func<UInt64, UInt64, UInt64, UInt64>)
Declaration
public EntityRepository(EntityThreadRepository[] entityThreadRepositories, Func<IEntity, ulong, ulong> entityThreadId, Func<ulong, ulong, ulong, ulong> entityIdAndTypeThreadId)
Parameters
Type |
Name |
Description |
EntityThreadRepository[] |
entityThreadRepositories |
|
System.Func<IEntity, System.UInt64, System.UInt64> |
entityThreadId |
|
System.Func<System.UInt64, System.UInt64, System.UInt64, System.UInt64> |
entityIdAndTypeThreadId |
|
Methods
|
Improve this Doc
View Source
Add(IEntity)
Declaration
public void Add(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
|
Improve this Doc
View Source
GetAll()
Declaration
public IEnumerable<IEntity> GetAll()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntity> |
|
|
Improve this Doc
View Source
Remove(IEntity)
Declaration
public void Remove(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
|
Improve this Doc
View Source
Remove(UInt64, UInt64)
Declaration
public void Remove(ulong id, ulong type)
Parameters
Type |
Name |
Description |
System.UInt64 |
id |
|
System.UInt64 |
type |
|
|
Improve this Doc
View Source
ResetData(IEntity, String)
Declaration
public void ResetData(IEntity entity, string key)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
System.String |
key |
|
|
Improve this Doc
View Source
TryGet(UInt64, UInt64, out IEntity)
Declaration
public bool TryGet(ulong id, ulong type, out IEntity entity)
Parameters
Type |
Name |
Description |
System.UInt64 |
id |
|
System.UInt64 |
type |
|
IEntity |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Update(IEntity)
Declaration
public void Update(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
|
Improve this Doc
View Source
UpdateData(IEntity, String, Object)
Declaration
public void UpdateData(IEntity entity, string key, object value)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
System.String |
key |
|
System.Object |
value |
|
Implements