What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-17 08:25:14
params Expression<Func<T, object>>[] includeProperties
public TEntity GetById(Guid id, params Expression<Func<TEntity, object>>[] includeProperties) { if (id == Guid.Empty) return null; var set = _unitOfWork.CreateSet<TEntity>(); foreach(var includeProperty in in... Add solution -
Java 2022-01-29 06:41:51
nitrite get repo structure
// extracts all objects from the repository org.dizitart.no2.objects.Cursor<Employee> cursor = repository.find(); // extracts paginated employee records from the repository Cursor<Employee> cursor = repository.find(limit(0, 1)); // extracts ... Add solution -
C# 2021-10-25 22:27:15
sharepoint c# csom get list item attachment
using Microsoft.SharePoint.Client; using System.Linq; using (ClientContext clientContext = new ClientContext("http://MyServer/sites/MySiteCollection")) { // clientcontext.Web.Lists.GetById - This option also can be used to get the list using L... Add solution -
Other 2021-09-05 14:02:02
use repository and unit of work in in unit testing
[TestMethod] public void ProductService_Given_Product_Id_Should_Get_Product_Name() { //Arrange var productId = 1; var expected = "AAA"; var product = new Product() { ProductName = expected, ProductID = productId }; var produ... Add solution