private static bool TryGetType(EfRepositoryContext repositoryContext, Type entityType) { var metadataWorkspace = ((IObjectContextAdapter)repositoryContext.DbContext).ObjectContext.MetadataWorkspace; EdmType edmType; return(metadataWorkspace.TryGetType(entityType.Name, "AnycmdModel", DataSpace.CSpace, out edmType)); }
public void SetRepositoryContext(EfRepositoryContext context) { if (context == null) { throw new ArgumentNullException("context"); } this._repositoryContexts[context.EfDbContextName] = context; }
/// <summary> /// /// </summary> /// <param name="context"></param> public void SetRepositoryContext(EfRepositoryContext context) { var storage = GetSimpleSessionStorage(); storage.SetRepositoryContext(context); }