Example #1
0
        internal static void Dispose(IsRepository context)
        {
            lock (Contexts) {
                CallContext.FreeNamedDataSlot("DatabaseContext");

                var key = context.Id.ToString();

                if (Contexts.ContainsKey(key))
                {
                    Contexts.Remove(key);
                }
            }
        }
Example #2
0
 public static IsDataSet Find(this IsRepository repository, Type type, object id)
 {
     return(repository.InvokeGenericMethod("Find", type, id) as IsDataSet);
 }
Example #3
0
 public static IsDataSet Get(this IsRepository repository, Type type)
 {
     return(repository.InvokeGenericMethod("Get", type) as IsDataSet);
 }
Example #4
0
 public static T Find <T>(this IsRepository context, object id) where T : class
 {
     return(context.Find(typeof(T), id) as T);
 }
Example #5
0
 public static IQueryable <T> Query <T>(this IsRepository context) where T : class
 {
     return(context.Query(typeof(T)) as IQueryable <T>);
 }
Example #6
0
 public IsController(IsRepository ıs, ArabaKonutIsModel model)
 {
     _ısRep = ıs;
     _model = model;
 }