Class DataBrowser<T>
Inheritance
System.Object
DataBrowser<T>
Inherited Members
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: TcOpen.Inxton.Data.dll
Syntax
public class DataBrowser<T> : IDataBrowser where T : IBrowsableDataObject, new()
Type Parameters
Constructors
|
Improve this Doc
View Source
DataBrowser(IRepository<T>)
Declaration
public DataBrowser(IRepository<T> repository)
Parameters
Properties
|
Improve this Doc
View Source
Count
Declaration
public long Count { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Records
Declaration
public IList<T> Records { get; protected set; }
Property Value
Type |
Description |
System.Collections.Generic.IList<T> |
|
|
Improve this Doc
View Source
Repository
Declaration
protected IRepository<T> Repository { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddRecord(T)
Declaration
public void AddRecord(T data)
Parameters
Type |
Name |
Description |
T |
data |
|
|
Improve this Doc
View Source
CastValue(OnlinerBaseType, String)
Declaration
dynamic CastValue(OnlinerBaseType type, string value)
Parameters
Type |
Name |
Description |
Vortex.Connector.ValueTypes.OnlinerBaseType |
type |
|
System.String |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Delete(T)
Declaration
public void Delete(T data)
Parameters
Type |
Name |
Description |
T |
data |
|
|
Improve this Doc
View Source
Export(Expression<Func<T, Boolean>>, Char)
Declaration
public IEnumerable<string> Export(Expression<Func<T, bool>> expression, char separator = ';')
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
expression |
|
System.Char |
separator |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
Filter(String, Int32, Int32, eSearchMode)
Declaration
public void Filter(string identifier, int limit = 10, int skip = 0, eSearchMode searchMode = eSearchMode.Exact)
Parameters
Type |
Name |
Description |
System.String |
identifier |
|
System.Int32 |
limit |
|
System.Int32 |
skip |
|
eSearchMode |
searchMode |
|
|
Improve this Doc
View Source
FilteredCount(String, eSearchMode)
Declaration
public long FilteredCount(string id, eSearchMode searchMode = eSearchMode.Exact)
Parameters
Type |
Name |
Description |
System.String |
id |
|
eSearchMode |
searchMode |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
FindByCreatedRange(DateTime, DateTime)
Declaration
public IEnumerable<T> FindByCreatedRange(DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
System.DateTime |
start |
|
System.DateTime |
end |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
FindById(String)
Declaration
public T FindById(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
|
Improve this Doc
View Source
FindByModifiedRange(DateTime, DateTime)
Declaration
public IEnumerable<T> FindByModifiedRange(DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
System.DateTime |
start |
|
System.DateTime |
end |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetRecords(Expression<Func<T, Boolean>>)
Declaration
public IQueryable<T> GetRecords(Expression<Func<T, bool>> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
expression |
|
Returns
Type |
Description |
System.Linq.IQueryable<T> |
|
|
Improve this Doc
View Source
Import(IEnumerable<String>, IVortexObject, Char)
Declaration
public void Import(IEnumerable<string> records, IVortexObject crudDataObject = null, char separator = ';')
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
records |
|
Vortex.Connector.IVortexObject |
crudDataObject |
|
System.Char |
separator |
|
|
Improve this Doc
View Source
UpdateDocument(List<DataBrowser<T>.ImportItems>, IEnumerable<IValueTag>, IVortexObject)
Declaration
void UpdateDocument(List<DataBrowser<T>.ImportItems> dictionary, IEnumerable<IValueTag> valueTags, IVortexObject prototype)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<DataBrowser.ImportItems<>> |
dictionary |
|
System.Collections.Generic.IEnumerable<Vortex.Connector.IValueTag> |
valueTags |
|
Vortex.Connector.IVortexObject |
prototype |
|
|
Improve this Doc
View Source
UpdateRecord(T)
Declaration
public IEnumerable<DataItemValidation> UpdateRecord(T data)
Parameters
Type |
Name |
Description |
T |
data |
|
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IDataBrowser.AddRecord(Object)
Declaration
void IDataBrowser.AddRecord(object data)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
|
Improve this Doc
View Source
IDataBrowser.Count
Declaration
long IDataBrowser.Count { get; }
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
IDataBrowser.CreateEmpty()
Declaration
object IDataBrowser.CreateEmpty()
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
IDataBrowser.Delete(Object)
Declaration
void IDataBrowser.Delete(object data)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
|
Improve this Doc
View Source
IDataBrowser.FilteredCount(String, eSearchMode)
Declaration
long IDataBrowser.FilteredCount(string id, eSearchMode searchMode = eSearchMode.Exact)
Parameters
Type |
Name |
Description |
System.String |
id |
|
eSearchMode |
searchMode |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
IDataBrowser.FindByCreatedRange(DateTime, DateTime)
Declaration
IEnumerable<object> IDataBrowser.FindByCreatedRange(DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
System.DateTime |
start |
|
System.DateTime |
end |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Object> |
|
|
Improve this Doc
View Source
IDataBrowser.FindById(String)
Declaration
object IDataBrowser.FindById(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
IDataBrowser.FindByModifiedRange(DateTime, DateTime)
Declaration
IEnumerable<object> IDataBrowser.FindByModifiedRange(DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
System.DateTime |
start |
|
System.DateTime |
end |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Object> |
|
|
Improve this Doc
View Source
IDataBrowser.Records
Declaration
IList<object> IDataBrowser.Records { get; }
Returns
Type |
Description |
System.Collections.Generic.IList<System.Object> |
|
|
Improve this Doc
View Source
IDataBrowser.UpdateRecord(Object)
Declaration
void IDataBrowser.UpdateRecord(object data)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
Implements