Example #1
0
        /// <summary>
        /// Initialize the internal cache of entity attribute information.
        /// </summary>
        /// <remarks>
        /// This method is normally invoked from the static constructor for the generated context class.
        /// It is provided as a public static method to enable the use of the cached entity attribute
        /// information without the need to construct a context (typically in test code).
        /// In normal application code you should never need to explicitly call this method.
        /// </remarks>
        public static void InitializeEntityMappingStore()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IAgent));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IAgent, RSPO.Agent>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IObject));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IObject, RSPO.Object>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IOffer));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IOffer, RSPO.Offer>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.ILocation));
            EntityMappingStore.Instance.SetImplMapping <RSPO.ILocation, RSPO.Location>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.ICountry));
            EntityMappingStore.Instance.SetImplMapping <RSPO.ICountry, RSPO.Country>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IRegion));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IRegion, RSPO.Region>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.ISite));
            EntityMappingStore.Instance.SetImplMapping <RSPO.ISite, RSPO.Site>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IBuildingSeries));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IBuildingSeries, RSPO.BuildingSeries>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IObjectClass));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IObjectClass, RSPO.ObjectClass>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IClassName));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IClassName, RSPO.ClassName>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.ILikes));
            EntityMappingStore.Instance.SetImplMapping <RSPO.ILikes, RSPO.Likes>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IProperty));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IProperty, RSPO.Property>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IPropertyType));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IPropertyType, RSPO.PropertyType>();
        }
 protected void InitializeContext()
 {
     var contextMappings = new EntityMappingStore();
     var rmp = new ReflectionMappingProvider();
     rmp.AddMappingsForAssembly(contextMappings, typeof(LinqToSparqlTests).Assembly);
     Context = new MockContext(contextMappings);
 }
            static MyEntityContext()
            {
                ReflectionMappingProvider provider = new ReflectionMappingProvider();

                provider.AddMappingsForType(EntityMappingStore.Instance, typeof(ITick));
                EntityMappingStore.Instance.SetImplMapping <ITick, TickRecord>();
            }
Example #4
0
        /// <summary>
        /// Initialize the internal cache of entity attribute information.
        /// </summary>
        /// <remarks>
        /// This method is normally invoked from the static constructor for the generated context class.
        /// It is provided as a public static method to enable the use of the cached entity attribute
        /// information without the need to construct a context (typically in test code).
        /// In normal application code you should never need to explicitly call this method.
        /// </remarks>
        public static void InitializeEntityMappingStore()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(API.Models.BrightstarDBModels.IWorker));
            EntityMappingStore.Instance.SetImplMapping <API.Models.BrightstarDBModels.IWorker, API.Models.BrightstarDBModels.Worker>();
        }
        protected void InitializeContext()
        {
            var rmp = new ReflectionMappingProvider();

            rmp.AddMappingsForAssembly(EntityMappingStore.Instance, typeof(LinqToSparqlTests).Assembly);
            Context = new MockContext();
        }
        static MyEntityContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.PerformanceBenchmarks.Models.IFoafPerson));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.PerformanceBenchmarks.Models.IFoafPerson, BrightstarDB.PerformanceBenchmarks.Models.FoafPerson>();
        }
Example #7
0
        static FoafContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.Foaf.IPerson));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.Foaf.IPerson, BrightstarDB.Samples.EntityFramework.Foaf.Person>();
        }
Example #8
0
        /// <summary>
        /// Initialize the internal cache of entity attribute information.
        /// </summary>
        /// <remarks>
        /// This method is normally invoked from the static constructor for the generated context class.
        /// It is provided as a public static method to enable the use of the cached entity attribute
        /// information without the need to construct a context (typically in test code).
        /// In normal application code you should never need to explicitly call this method.
        /// </remarks>
        public static void InitializeEntityMappingStore()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightStarDb_App1.IBook));
            EntityMappingStore.Instance.SetImplMapping <BrightStarDb_App1.IBook, BrightStarDb_App1.Book>();
        }
Example #9
0
        static MyEntityContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Mobile.Tests.EntityFramework.INote));
            TypeMappings.AddImplMapping <BrightstarDB.Mobile.Tests.EntityFramework.INote, BrightstarDB.Mobile.Tests.EntityFramework.Note>();
        }
Example #10
0
        static FoafContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.Foaf.IPerson));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.Foaf.IPerson, BrightstarDB.Samples.EntityFramework.Foaf.Person>();
        }
Example #11
0
        static NotesContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarNotes.DataModel.INote));
            EntityMappingStore.Instance.SetImplMapping <BrightstarNotes.DataModel.INote, BrightstarNotes.DataModel.Note>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarNotes.DataModel.INoteCategory));
            EntityMappingStore.Instance.SetImplMapping <BrightstarNotes.DataModel.INoteCategory, BrightstarNotes.DataModel.NoteCategory>();
        }
Example #12
0
        static MyEntityContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(Hqub.Esenin.App.Model.IPoem));
            EntityMappingStore.Instance.SetImplMapping <Hqub.Esenin.App.Model.IPoem, Hqub.Esenin.App.Model.Poem>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(Hqub.Esenin.App.Model.IQuatrain));
            EntityMappingStore.Instance.SetImplMapping <Hqub.Esenin.App.Model.IQuatrain, Hqub.Esenin.App.Model.Quatrain>();
        }
Example #13
0
        static MyEntityContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.ChangeTracking.IArticle));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.ChangeTracking.IArticle, BrightstarDB.Samples.EntityFramework.ChangeTracking.Article>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.ChangeTracking.ITrackable));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.ChangeTracking.ITrackable, BrightstarDB.Samples.EntityFramework.ChangeTracking.Trackable>();
        }
Example #14
0
        static MyEntityContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.GettingStarted.IActor));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.GettingStarted.IActor, BrightstarDB.Samples.EntityFramework.GettingStarted.Actor>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.GettingStarted.IFilm));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.GettingStarted.IFilm, BrightstarDB.Samples.EntityFramework.GettingStarted.Film>();
        }
Example #15
0
        static NotesContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(GettingStarted.DataModel.ICategory));
            EntityMappingStore.Instance.SetImplMapping <GettingStarted.DataModel.ICategory, GettingStarted.DataModel.Category>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(GettingStarted.DataModel.INote));
            EntityMappingStore.Instance.SetImplMapping <GettingStarted.DataModel.INote, GettingStarted.DataModel.Note>();
        }
Example #16
0
        /// <summary>
        /// Initialize the internal cache of entity attribute information.
        /// </summary>
        /// <remarks>
        /// This method is normally invoked from the static constructor for the generated context class.
        /// It is provided as a public static method to enable the use of the cached entity attribute
        /// information without the need to construct a context (typically in test code).
        /// In normal application code you should never need to explicitly call this method.
        /// </remarks>
        public static void InitializeEntityMappingStore()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(Star.IActor));
            EntityMappingStore.Instance.SetImplMapping <Star.IActor, Star.Actor>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(Star.IFilm));
            EntityMappingStore.Instance.SetImplMapping <Star.IFilm, Star.Film>();
        }
Example #17
0
        static MyEntityContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.ChangeTracking.IArticle));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.ChangeTracking.IArticle, BrightstarDB.Samples.EntityFramework.ChangeTracking.Article>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.ChangeTracking.ITrackable));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.ChangeTracking.ITrackable, BrightstarDB.Samples.EntityFramework.ChangeTracking.Trackable>();
        }
        static MyEntityContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.GettingStarted.IActor));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.GettingStarted.IActor, BrightstarDB.Samples.EntityFramework.GettingStarted.Actor>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.GettingStarted.IFilm));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.GettingStarted.IFilm, BrightstarDB.Samples.EntityFramework.GettingStarted.Film>();
        }
Example #19
0
        static NotesContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(GettingStarted.DataModel.ICategory));
            TypeMappings.AddImplMapping <GettingStarted.DataModel.ICategory, GettingStarted.DataModel.Category>();
            provider.AddMappingsForType(TypeMappings, typeof(GettingStarted.DataModel.INote));
            TypeMappings.AddImplMapping <GettingStarted.DataModel.INote, GettingStarted.DataModel.Note>();
        }
Example #20
0
        static NotesContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarNotes.DataModel.INote));
            TypeMappings.AddImplMapping <BrightstarNotes.DataModel.INote, BrightstarNotes.DataModel.Note>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarNotes.DataModel.INoteCategory));
            TypeMappings.AddImplMapping <BrightstarNotes.DataModel.INoteCategory, BrightstarNotes.DataModel.NoteCategory>();
        }
Example #21
0
 	static TestContext() 
 	{
 		TypeMappings = new EntityMappingStore();
 		var provider = new ReflectionMappingProvider();
 		provider.AddMappingsForType(TypeMappings, typeof(NetworkedPlanet.Brightstar.Tests.EntityFramework.IPerson));
 		TypeMappings.AddImplMapping<NetworkedPlanet.Brightstar.Tests.EntityFramework.IPerson, NetworkedPlanet.Brightstar.Tests.EntityFramework.Person>();
         provider.AddMappingsForType(TypeMappings, typeof(IAnimal));
         TypeMappings.AddImplMapping<IAnimal, Animal>();
         provider.AddMappingsForType(TypeMappings, typeof(ISkill));
         TypeMappings.AddImplMapping<ISkill, Skill>();
 	}
Example #22
0
        static MyEntityContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.IDepartment));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.IDepartment, BrightstarDB.OData.Department>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.IPerson));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.IPerson, BrightstarDB.OData.Person>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.ISkill));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.ISkill, BrightstarDB.OData.Skill>();
        }
Example #23
0
        /// <summary>
        /// Initialize the internal cache of entity attribute information.
        /// </summary>
        /// <remarks>
        /// This method is normally invoked from the static constructor for the generated context class.
        /// It is provided as a public static method to enable the use of the cached entity attribute
        /// information without the need to construct a context (typically in test code).
        /// In normal application code you should never need to explicitly call this method.
        /// </remarks>
        public static void InitializeEntityMappingStore()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(imbNLP.Data.semanticLexicon.core.IConcept));
            EntityMappingStore.Instance.SetImplMapping <imbNLP.Data.semanticLexicon.core.IConcept, Concept>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(imbNLP.Data.semanticLexicon.core.ITermInstance));
            EntityMappingStore.Instance.SetImplMapping <imbNLP.Data.semanticLexicon.core.ITermInstance, TermInstance>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(imbNLP.Data.semanticLexicon.core.ITermLemma));
            EntityMappingStore.Instance.SetImplMapping <imbNLP.Data.semanticLexicon.core.ITermLemma, TermLemma>();
        }
        static NerdDinnerContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.NerdDinner.Models.IDinner));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.NerdDinner.Models.IDinner, BrightstarDB.Samples.NerdDinner.Models.Dinner>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.NerdDinner.Models.INerdDinnerLogin));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.NerdDinner.Models.INerdDinnerLogin, BrightstarDB.Samples.NerdDinner.Models.NerdDinnerLogin>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.NerdDinner.Models.IRSVP));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.NerdDinner.Models.IRSVP, BrightstarDB.Samples.NerdDinner.Models.RSVP>();
        }
Example #25
0
        static TestContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(NetworkedPlanet.Brightstar.Tests.EntityFramework.IPerson));
            TypeMappings.AddImplMapping <NetworkedPlanet.Brightstar.Tests.EntityFramework.IPerson, NetworkedPlanet.Brightstar.Tests.EntityFramework.Person>();
            provider.AddMappingsForType(TypeMappings, typeof(IAnimal));
            TypeMappings.AddImplMapping <IAnimal, Animal>();
            provider.AddMappingsForType(TypeMappings, typeof(ISkill));
            TypeMappings.AddImplMapping <ISkill, Skill>();
        }
Example #26
0
        static NerdDinnerContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.NerdDinner.Models.IDinner));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.NerdDinner.Models.IDinner, BrightstarDB.Samples.NerdDinner.Models.Dinner>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.NerdDinner.Models.INerdDinnerLogin));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.NerdDinner.Models.INerdDinnerLogin, BrightstarDB.Samples.NerdDinner.Models.NerdDinnerLogin>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.NerdDinner.Models.IRSVP));
            TypeMappings.AddImplMapping <BrightstarDB.Samples.NerdDinner.Models.IRSVP, BrightstarDB.Samples.NerdDinner.Models.RSVP>();
        }
Example #27
0
        static EventFeedContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Models.EventFeed.IEvent));
            TypeMappings.AddImplMapping <BrightstarDB.Models.EventFeed.IEvent, BrightstarDB.Models.EventFeed.Event>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Models.EventFeed.ISubscriber));
            TypeMappings.AddImplMapping <BrightstarDB.Models.EventFeed.ISubscriber, BrightstarDB.Models.EventFeed.Subscriber>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Models.EventFeed.ITopic));
            TypeMappings.AddImplMapping <BrightstarDB.Models.EventFeed.ITopic, BrightstarDB.Models.EventFeed.Topic>();
        }
Example #28
0
        static MyEntityContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.IDepartment));
            TypeMappings.AddImplMapping <BrightstarDB.OData.IDepartment, BrightstarDB.OData.Department>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.IPerson));
            TypeMappings.AddImplMapping <BrightstarDB.OData.IPerson, BrightstarDB.OData.Person>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.ISkill));
            TypeMappings.AddImplMapping <BrightstarDB.OData.ISkill, BrightstarDB.OData.Skill>();
        }
Example #29
0
        static TweetBoxContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.IHashTag));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.IHashTag, BrightstarDB.Samples.EntityFramework.TweetBox.HashTag>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.ISocialNetworkAccount));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.ISocialNetworkAccount, BrightstarDB.Samples.EntityFramework.TweetBox.SocialNetworkAccount>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.ITweet));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.ITweet, BrightstarDB.Samples.EntityFramework.TweetBox.Tweet>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.IUser));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.IUser, BrightstarDB.Samples.EntityFramework.TweetBox.User>();
        }
Example #30
0
        static MyEntityContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IAnimal));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IAnimal, BrightstarDB.Tests.EntityFramework.Animal>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IArticle));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IArticle, BrightstarDB.Tests.EntityFramework.Article>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IBaseEntity));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IBaseEntity, BrightstarDB.Tests.EntityFramework.BaseEntity>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.ICompany));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.ICompany, BrightstarDB.Tests.EntityFramework.Company>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IDBPediaPerson));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IDBPediaPerson, BrightstarDB.Tests.EntityFramework.DBPediaPerson>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IDepartment));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IDepartment, BrightstarDB.Tests.EntityFramework.Department>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IDerivedEntity));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IDerivedEntity, BrightstarDB.Tests.EntityFramework.DerivedEntity>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IEntity));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IEntity, BrightstarDB.Tests.EntityFramework.Entity>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IFoafAgent));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IFoafAgent, BrightstarDB.Tests.EntityFramework.FoafAgent>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IFoafPerson));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IFoafPerson, BrightstarDB.Tests.EntityFramework.FoafPerson>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IIdentityClashTest));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IIdentityClashTest, BrightstarDB.Tests.EntityFramework.IdentityClashTest>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IIdentityClashTestLevel1));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IIdentityClashTestLevel1, BrightstarDB.Tests.EntityFramework.IdentityClashTestLevel1>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IIdentityClashTestLevel2));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IIdentityClashTestLevel2, BrightstarDB.Tests.EntityFramework.IdentityClashTestLevel2>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IJobRole));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IJobRole, BrightstarDB.Tests.EntityFramework.JobRole>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IMarket));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IMarket, BrightstarDB.Tests.EntityFramework.Market>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IPerson));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IPerson, BrightstarDB.Tests.EntityFramework.Person>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.ISession));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.ISession, BrightstarDB.Tests.EntityFramework.Session>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.IEveningSession));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.IEveningSession, BrightstarDB.Tests.EntityFramework.EveningSession>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.ITechnicalEveningSession));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.ITechnicalEveningSession, BrightstarDB.Tests.EntityFramework.TechnicalEveningSession>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.ISkill));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.ISkill, BrightstarDB.Tests.EntityFramework.Skill>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Tests.EntityFramework.ITrackable));
            TypeMappings.AddImplMapping <BrightstarDB.Tests.EntityFramework.ITrackable, BrightstarDB.Tests.EntityFramework.Trackable>();
        }
Example #31
0
        static GedComContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Gedcom.IBirthEvent));
            TypeMappings.AddImplMapping <BrightstarDB.Gedcom.IBirthEvent, BrightstarDB.Gedcom.BirthEvent>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Gedcom.IDeathEvent));
            TypeMappings.AddImplMapping <BrightstarDB.Gedcom.IDeathEvent, BrightstarDB.Gedcom.DeathEvent>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Gedcom.IFamily));
            TypeMappings.AddImplMapping <BrightstarDB.Gedcom.IFamily, BrightstarDB.Gedcom.Family>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Gedcom.IIndividual));
            TypeMappings.AddImplMapping <BrightstarDB.Gedcom.IIndividual, BrightstarDB.Gedcom.Individual>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Gedcom.IMarriageEvent));
            TypeMappings.AddImplMapping <BrightstarDB.Gedcom.IMarriageEvent, BrightstarDB.Gedcom.MarriageEvent>();
        }
Example #32
0
        static AccountsContext()
        {
            TypeMappings = new EntityMappingStore();
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Azure.Management.Accounts.IAccount));
            TypeMappings.AddImplMapping <BrightstarDB.Azure.Management.Accounts.IAccount, BrightstarDB.Azure.Management.Accounts.Account>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Azure.Management.Accounts.IStore));
            TypeMappings.AddImplMapping <BrightstarDB.Azure.Management.Accounts.IStore, BrightstarDB.Azure.Management.Accounts.Store>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Azure.Management.Accounts.IStoreAccess));
            TypeMappings.AddImplMapping <BrightstarDB.Azure.Management.Accounts.IStoreAccess, BrightstarDB.Azure.Management.Accounts.StoreAccess>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Azure.Management.Accounts.ISubscription));
            TypeMappings.AddImplMapping <BrightstarDB.Azure.Management.Accounts.ISubscription, BrightstarDB.Azure.Management.Accounts.Subscription>();
            provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Azure.Management.Accounts.IUserToken));
            TypeMappings.AddImplMapping <BrightstarDB.Azure.Management.Accounts.IUserToken, BrightstarDB.Azure.Management.Accounts.UserToken>();
        }