Class RepositoryBase
A base repository class to be used with plugins and such. Contains logging functionality
Inheritance
System.Object
RepositoryBase
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()
Namespace: ImageVault.Core.DataAccess.Repositories
Assembly: ImageVault.Core.dll
Syntax
public abstract class RepositoryBase
Constructors
RepositoryBase()
Initializes a new instance of the RepositoryBase class.
Declaration
protected RepositoryBase()
Properties
Log
Get/Sets the Log of the RepositoryBase
Declaration
protected ILog Log { get; }
Property Value
Type | Description |
---|---|
ILog |
Methods
Or<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Combines two expressions with or
Declaration
protected static Expression<Func<T, bool>> Or<T>(Expression<Func<T, bool>> a, Expression<Func<T, bool>> b)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | a | |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | b |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Name | Description |
---|---|
T |
ParseAndLogException(String, DbEntityValidationException)
Parses and logs the DbEntityValidationException
Declaration
protected void ParseAndLogException(string message, DbEntityValidationException e)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Data.Entity.Validation.DbEntityValidationException | e |
ParseAndLogException(String, Exception)
Parses and logs the exception
Declaration
protected void ParseAndLogException(string message, Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | e | The exception to parse |