public MockContext(EntityMappingStore mappingStore) : base(mappingStore) { mappingStore.AddImplMapping <IDinner, Dinner>(); mappingStore.AddImplMapping <ContextObjects.ICompany, ContextObjects.Company>(); mappingStore.AddImplMapping <ContextObjects.IMarket, ContextObjects.Market>(); mappingStore.AddImplMapping <ContextObjects.IPerson, ContextObjects.Person>(); mappingStore.AddImplMapping <IRsvp, Rsvp>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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 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>(); }
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>(); }
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() { 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>(); }
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>(); }
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>(); }
static TweetBoxContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.IHashTag)); TypeMappings.AddImplMapping<BrightstarDB.Samples.EntityFramework.TweetBox.IHashTag, BrightstarDB.Samples.EntityFramework.TweetBox.HashTag>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.ISocialNetworkAccount)); TypeMappings.AddImplMapping<BrightstarDB.Samples.EntityFramework.TweetBox.ISocialNetworkAccount, BrightstarDB.Samples.EntityFramework.TweetBox.SocialNetworkAccount>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.ITweet)); TypeMappings.AddImplMapping<BrightstarDB.Samples.EntityFramework.TweetBox.ITweet, BrightstarDB.Samples.EntityFramework.TweetBox.Tweet>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.IUser)); TypeMappings.AddImplMapping<BrightstarDB.Samples.EntityFramework.TweetBox.IUser, BrightstarDB.Samples.EntityFramework.TweetBox.User>(); }
static TweetBoxContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.IHashTag)); TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.IHashTag, BrightstarDB.Samples.EntityFramework.TweetBox.HashTag>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.ISocialNetworkAccount)); TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.ISocialNetworkAccount, BrightstarDB.Samples.EntityFramework.TweetBox.SocialNetworkAccount>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.ITweet)); TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.ITweet, BrightstarDB.Samples.EntityFramework.TweetBox.Tweet>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Samples.EntityFramework.TweetBox.IUser)); TypeMappings.AddImplMapping <BrightstarDB.Samples.EntityFramework.TweetBox.IUser, BrightstarDB.Samples.EntityFramework.TweetBox.User>(); }
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 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>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(EmailVisualiser.Data.IPersistentEmail)); TypeMappings.AddImplMapping<EmailVisualiser.Data.IPersistentEmail, EmailVisualiser.Data.PersistentEmail>(); }
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>(); }
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() { 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>(); }
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>(); }
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>(); }
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>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IArticle)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.IArticle, BrightstarDB.OData.Tests.Article>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.ICompany)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.ICompany, BrightstarDB.OData.Tests.Company>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IDataTypeTestEntity)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.IDataTypeTestEntity, BrightstarDB.OData.Tests.DataTypeTestEntity>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IDepartment)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.IDepartment, BrightstarDB.OData.Tests.Department>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IJobRole)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.IJobRole, BrightstarDB.OData.Tests.JobRole>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IPerson)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.IPerson, BrightstarDB.OData.Tests.Person>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IProject)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.IProject, BrightstarDB.OData.Tests.Project>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.ISkill)); TypeMappings.AddImplMapping<BrightstarDB.OData.Tests.ISkill, BrightstarDB.OData.Tests.Skill>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IArticle)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.IArticle, BrightstarDB.OData.Tests.Article>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.ICompany)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.ICompany, BrightstarDB.OData.Tests.Company>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IDataTypeTestEntity)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.IDataTypeTestEntity, BrightstarDB.OData.Tests.DataTypeTestEntity>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IDepartment)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.IDepartment, BrightstarDB.OData.Tests.Department>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IJobRole)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.IJobRole, BrightstarDB.OData.Tests.JobRole>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IPerson)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.IPerson, BrightstarDB.OData.Tests.Person>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.IProject)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.IProject, BrightstarDB.OData.Tests.Project>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.OData.Tests.ISkill)); TypeMappings.AddImplMapping <BrightstarDB.OData.Tests.ISkill, BrightstarDB.OData.Tests.Skill>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IAnimal)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.IAnimal, BrightstarDB.Server.IntegrationTests.Context.Animal>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IDepartment)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.IDepartment, BrightstarDB.Server.IntegrationTests.Context.Department>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IFoafAgent)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.IFoafAgent, BrightstarDB.Server.IntegrationTests.Context.FoafAgent>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IFoafPerson)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.IFoafPerson, BrightstarDB.Server.IntegrationTests.Context.FoafPerson>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IJobRole)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.IJobRole, BrightstarDB.Server.IntegrationTests.Context.JobRole>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IPerson)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.IPerson, BrightstarDB.Server.IntegrationTests.Context.Person>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.ISkill)); TypeMappings.AddImplMapping<BrightstarDB.Server.IntegrationTests.Context.ISkill, BrightstarDB.Server.IntegrationTests.Context.Skill>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IAnimal)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.IAnimal, BrightstarDB.Server.IntegrationTests.Context.Animal>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IDepartment)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.IDepartment, BrightstarDB.Server.IntegrationTests.Context.Department>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IFoafAgent)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.IFoafAgent, BrightstarDB.Server.IntegrationTests.Context.FoafAgent>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IFoafPerson)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.IFoafPerson, BrightstarDB.Server.IntegrationTests.Context.FoafPerson>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IJobRole)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.IJobRole, BrightstarDB.Server.IntegrationTests.Context.JobRole>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.IPerson)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.IPerson, BrightstarDB.Server.IntegrationTests.Context.Person>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.Server.IntegrationTests.Context.ISkill)); TypeMappings.AddImplMapping <BrightstarDB.Server.IntegrationTests.Context.ISkill, BrightstarDB.Server.IntegrationTests.Context.Skill>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IArticle)); TypeMappings.AddImplMapping<BrightstarDB.PerformanceTests.Model.IArticle, BrightstarDB.PerformanceTests.Model.Article>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IDepartment)); TypeMappings.AddImplMapping<BrightstarDB.PerformanceTests.Model.IDepartment, BrightstarDB.PerformanceTests.Model.Department>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IJobRole)); TypeMappings.AddImplMapping<BrightstarDB.PerformanceTests.Model.IJobRole, BrightstarDB.PerformanceTests.Model.JobRole>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IPerson)); TypeMappings.AddImplMapping<BrightstarDB.PerformanceTests.Model.IPerson, BrightstarDB.PerformanceTests.Model.Person>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.ISkill)); TypeMappings.AddImplMapping<BrightstarDB.PerformanceTests.Model.ISkill, BrightstarDB.PerformanceTests.Model.Skill>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IWebsite)); TypeMappings.AddImplMapping<BrightstarDB.PerformanceTests.Model.IWebsite, BrightstarDB.PerformanceTests.Model.Website>(); }
static MyEntityContext() { TypeMappings = new EntityMappingStore(); var provider = new ReflectionMappingProvider(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IArticle)); TypeMappings.AddImplMapping <BrightstarDB.PerformanceTests.Model.IArticle, BrightstarDB.PerformanceTests.Model.Article>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IDepartment)); TypeMappings.AddImplMapping <BrightstarDB.PerformanceTests.Model.IDepartment, BrightstarDB.PerformanceTests.Model.Department>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IJobRole)); TypeMappings.AddImplMapping <BrightstarDB.PerformanceTests.Model.IJobRole, BrightstarDB.PerformanceTests.Model.JobRole>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IPerson)); TypeMappings.AddImplMapping <BrightstarDB.PerformanceTests.Model.IPerson, BrightstarDB.PerformanceTests.Model.Person>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.ISkill)); TypeMappings.AddImplMapping <BrightstarDB.PerformanceTests.Model.ISkill, BrightstarDB.PerformanceTests.Model.Skill>(); provider.AddMappingsForType(TypeMappings, typeof(BrightstarDB.PerformanceTests.Model.IWebsite)); TypeMappings.AddImplMapping <BrightstarDB.PerformanceTests.Model.IWebsite, BrightstarDB.PerformanceTests.Model.Website>(); }
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.IConcept)); TypeMappings.AddImplMapping<BrightstarDB.Tests.EntityFramework.IConcept, BrightstarDB.Tests.EntityFramework.Concept>(); 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>(); }
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>(); }