Commit 38958499 authored by Almouhannad's avatar Almouhannad

(B) Fix format, Add comments

parent 61e0e6ec
......@@ -74,13 +74,4 @@ public class Repositroy<TEntity> : IRepository<TEntity> where TEntity : Entity
#endregion
}
......@@ -10,13 +10,27 @@ public abstract class Specification<TEntity> where TEntity : Entity
Criteria = criteria;
}
#region Where criteria
public Expression<Func<TEntity, bool>>? Criteria { get; }
#endregion
#region Includes
public List<Expression<Func<TEntity, object>>> IncludeExpressions { get; } = new();
#endregion
#region Order by
public Expression<Func<TEntity, object>>? OrderByExpression { get; private set; }
public Expression<Func<TEntity, object>>? OrderByDescendingExpression { get; private set; }
#endregion
#region Add methods
protected void AddInclude(Expression<Func<TEntity, object>> includeExpression)
{
IncludeExpressions.Add(includeExpression);
......@@ -32,5 +46,6 @@ public abstract class Specification<TEntity> where TEntity : Entity
OrderByDescendingExpression = orderByDescendingExpression;
}
#endregion
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment