Class ExportImportRepository
Inheritance
System.Object
ExportImportRepository
Assembly: DotNetNuke.SiteExportImport.Library.dll
Syntax
public class ExportImportRepository : object, IExportImportRepository
Constructors
|
Improve this Doc
View Source
ExportImportRepository(String)
Declaration
public ExportImportRepository(string dbFileName)
Parameters
Type |
Name |
Description |
System.String |
dbFileName |
The LiteDB connection string.
|
Methods
|
Improve this Doc
View Source
AddSingleItem<T>(T)
Declaration
public T AddSingleItem<T>(T item)
where T : class
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type Parameters
|
Improve this Doc
View Source
CleanUpLocal(String)
Declaration
public void CleanUpLocal(string collectionName)
Parameters
Type |
Name |
Description |
System.String |
collectionName |
|
|
Improve this Doc
View Source
CreateItem<T>(T, Nullable<Int32>)
Declaration
public T CreateItem<T>(T item, int? referenceId)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
T |
item |
|
System.Nullable<System.Int32> |
referenceId |
|
Returns
Type Parameters
|
Improve this Doc
View Source
CreateItems<T>(IEnumerable<T>, Nullable<Int32>)
Declaration
public void CreateItems<T>(IEnumerable<T> items, int? referenceId = null)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
IEnumerable<T> |
items |
|
System.Nullable<System.Int32> |
referenceId |
|
Type Parameters
|
Improve this Doc
View Source
DeleteItem<T>(Int32)
Declaration
public bool DeleteItem<T>(int id)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
DeleteItems<T>(Expression<Func<T, Boolean>>)
Declaration
public void DeleteItems<T>(Expression<Func<T, bool>> deleteExpression)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Expression<Func<T, System.Boolean>> |
deleteExpression |
|
Type Parameters
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
FindItems<T>(Expression<Func<T, Boolean>>)
Declaration
public IEnumerable<T> FindItems<T>(Expression<Func<T, bool>> predicate)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Expression<Func<T, System.Boolean>> |
predicate |
|
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetAllItems<T>(Func<T, Object>, Boolean, Nullable<Int32>, Nullable<Int32>)
Declaration
public IEnumerable<T> GetAllItems<T>(Func<T, object> orderKeySelector = null, bool asc = true, int? skip = null, int? max = null)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Func<T, System.Object> |
orderKeySelector |
|
System.Boolean |
asc |
|
System.Nullable<System.Int32> |
skip |
|
System.Nullable<System.Int32> |
max |
|
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetCount<T>()
Declaration
public int GetCount<T>()
where T : BasicExportImportDto
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
GetCount<T>(Expression<Func<T, Boolean>>)
Declaration
public int GetCount<T>(Expression<Func<T, bool>> predicate)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Expression<Func<T, System.Boolean>> |
predicate |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
GetItem<T>(Expression<Func<T, Boolean>>)
Declaration
public T GetItem<T>(Expression<Func<T, bool>> predicate)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Expression<Func<T, System.Boolean>> |
predicate |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetItem<T>(Int32)
Declaration
public T GetItem<T>(int id)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetItems<T>(Expression<Func<T, Boolean>>, Func<T, Object>, Boolean, Nullable<Int32>, Nullable<Int32>)
Declaration
public IEnumerable<T> GetItems<T>(Expression<Func<T, bool>> predicate, Func<T, object> orderKeySelector = null, bool asc = true, int? skip = null, int? max = null)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Expression<Func<T, System.Boolean>> |
predicate |
|
Func<T, System.Object> |
orderKeySelector |
|
System.Boolean |
asc |
|
System.Nullable<System.Int32> |
skip |
|
System.Nullable<System.Int32> |
max |
|
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetItems<T>(IEnumerable<Int32>)
Declaration
public IEnumerable<T> GetItems<T>(IEnumerable<int> idList)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
idList |
|
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public IEnumerable<T> GetRelatedItems<T>(int referenceId)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
System.Int32 |
referenceId |
|
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetSingleItem<T>()
Declaration
public T GetSingleItem<T>()
where T : class
Returns
Type Parameters
|
Improve this Doc
View Source
RebuildIndex<T>(Expression<Func<T, Object>>, Boolean)
Declaration
public void RebuildIndex<T>(Expression<Func<T, object>> predicate, bool unique = false)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
Expression<Func<T, System.Object>> |
predicate |
|
System.Boolean |
unique |
|
Type Parameters
|
Improve this Doc
View Source
UpdateItem<T>(T)
Declaration
public void UpdateItem<T>(T item)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
T |
item |
|
Type Parameters
|
Improve this Doc
View Source
UpdateItems<T>(IEnumerable<T>)
Declaration
public void UpdateItems<T>(IEnumerable<T> items)
where T : BasicExportImportDto
Parameters
Type |
Name |
Description |
IEnumerable<T> |
items |
|
Type Parameters
|
Improve this Doc
View Source
UpdateSingleItem<T>(T)
Declaration
public T UpdateSingleItem<T>(T item)
where T : class
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type Parameters
Implements
IDisposable
Extension Methods