Skip to content

Instantly share code, notes, and snippets.

Avatar
:atom:
react 🤘

Iman Mahmoudinasab ImanMahmoudinasab

:atom:
react 🤘
  • Yocale
  • Canada, Vancouver
View GitHub Profile
@staltz
staltz / introrx.md
Last active Mar 5, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
View gist:1041639
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTNX.DNS.DataAccess.Repositories
{
public class RepositoryBase<T> where T : ModelBase
{
public RepositoryBase()
View InMemoryDbSet.cs
public class InMemoryDbSet<T> : IDbSet<T> where T : class
{
readonly HashSet<T> _set;
readonly IQueryable<T> _queryableSet;
public InMemoryDbSet() : this(Enumerable.Empty<T>()) { }
public InMemoryDbSet(IEnumerable<T> entities) {