Esempio n. 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.IProperty));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IProperty, RSPO.Property>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(RSPO.IPropertyType));
            EntityMappingStore.Instance.SetImplMapping <RSPO.IPropertyType, RSPO.PropertyType>();
        }
Esempio n. 2
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>();
        }
Esempio n. 3
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>();
        }
Esempio n. 4
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>();
        }
Esempio n. 5
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>();
        }
Esempio n. 6
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>();
        }
Esempio n. 7
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>();
        }
Esempio n. 8
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>();
        }
Esempio n. 9
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>();
        }
Esempio n. 10
0
        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>();
        }
Esempio n. 11
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>();
        }
Esempio n. 12
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>();
        }
Esempio n. 13
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>();
 	}
        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>();
        }
Esempio n. 15
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>();
        }
Esempio n. 16
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>();
        }
Esempio n. 17
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>();
        }
Esempio n. 18
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>();
        }
Esempio n. 19
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>();
        }
Esempio n. 20
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>();
        }
Esempio n. 21
0
        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>();
        }
Esempio n. 22
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>();
        }
Esempio n. 23
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>();
        }
Esempio n. 24
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>();
        }
            static MyEntityContext()
            {
                ReflectionMappingProvider provider = new ReflectionMappingProvider();

                provider.AddMappingsForType(EntityMappingStore.Instance, typeof(ITick));
                EntityMappingStore.Instance.SetImplMapping <ITick, TickRecord>();
            }
Esempio n. 26
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>();
        }
Esempio n. 27
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>();
        }
Esempio n. 28
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>();
        }
Esempio n. 29
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>();
        }
Esempio n. 30
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.Portable.Android.Tests.EntityFramework.IAnimal));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IAnimal, BrightstarDB.Portable.Android.Tests.EntityFramework.Animal>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.IDepartment));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IDepartment, BrightstarDB.Portable.Android.Tests.EntityFramework.Department>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.IEntity));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IEntity, BrightstarDB.Portable.Android.Tests.EntityFramework.Entity>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.IFoafAgent));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IFoafAgent, BrightstarDB.Portable.Android.Tests.EntityFramework.FoafAgent>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.IFoafPerson));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IFoafPerson, BrightstarDB.Portable.Android.Tests.EntityFramework.FoafPerson>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.IJobRole));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IJobRole, BrightstarDB.Portable.Android.Tests.EntityFramework.JobRole>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.IPerson));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.IPerson, BrightstarDB.Portable.Android.Tests.EntityFramework.Person>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.Portable.Android.Tests.EntityFramework.ISkill));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.Portable.Android.Tests.EntityFramework.ISkill, BrightstarDB.Portable.Android.Tests.EntityFramework.Skill>();
        }
Esempio n. 31
0
        static MyEntityContext()
        {
            var provider = new ReflectionMappingProvider();

            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.IArticle));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.IArticle, BrightstarDB.OData.Tests.Article>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.ICompany));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.ICompany, BrightstarDB.OData.Tests.Company>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.IDataTypeTestEntity));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.IDataTypeTestEntity, BrightstarDB.OData.Tests.DataTypeTestEntity>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.IDepartment));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.IDepartment, BrightstarDB.OData.Tests.Department>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.IJobRole));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.IJobRole, BrightstarDB.OData.Tests.JobRole>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.IPerson));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.IPerson, BrightstarDB.OData.Tests.Person>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.IProject));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.IProject, BrightstarDB.OData.Tests.Project>();
            provider.AddMappingsForType(EntityMappingStore.Instance, typeof(BrightstarDB.OData.Tests.ISkill));
            EntityMappingStore.Instance.SetImplMapping <BrightstarDB.OData.Tests.ISkill, BrightstarDB.OData.Tests.Skill>();
        }