internal static void Dispose(IsRepository context) { lock (Contexts) { CallContext.FreeNamedDataSlot("DatabaseContext"); var key = context.Id.ToString(); if (Contexts.ContainsKey(key)) { Contexts.Remove(key); } } }
public static IsDataSet Find(this IsRepository repository, Type type, object id) { return(repository.InvokeGenericMethod("Find", type, id) as IsDataSet); }
public static IsDataSet Get(this IsRepository repository, Type type) { return(repository.InvokeGenericMethod("Get", type) as IsDataSet); }
public static T Find <T>(this IsRepository context, object id) where T : class { return(context.Find(typeof(T), id) as T); }
public static IQueryable <T> Query <T>(this IsRepository context) where T : class { return(context.Query(typeof(T)) as IQueryable <T>); }
public IsController(IsRepository ıs, ArabaKonutIsModel model) { _ısRep = ıs; _model = model; }