private static XdbModel BuilddCustomModel() { XdbModelBuilder xdbModelBuilder = new XdbModelBuilder("HubspotScoreFacetModel", new XdbModelVersion(1, 0)); xdbModelBuilder.ReferenceModel(CollectionModel.Model); xdbModelBuilder.DefineFacet <Contact, ScoreFacet>(ScoreFacet.DefaultFacetKey); xdbModelBuilder.DefineFacet <Contact, ScoreNameFacet>(ScoreNameFacet.DefaultFacetKey); return(xdbModelBuilder.BuildModel()); }
private static XdbModel BuildModel() { XdbModelBuilder modelBuilder = new XdbModelBuilder("FaceApiModel", new XdbModelVersion(0, 1)); modelBuilder.ReferenceModel(Sitecore.XConnect.Collection.Model.CollectionModel.Model); modelBuilder.DefineFacet <Sitecore.XConnect.Interaction, FaceApiFacet>("FaceApiFacet"); modelBuilder.DefineFacet <Sitecore.XConnect.Contact, CvPersonFacet>("CvPersonFacet"); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { XdbModelBuilder modelBuilder = new XdbModelBuilder("DocumentationModel", new XdbModelVersion(1, 0)); // Facets and events here modelBuilder.DefineFacet <Contact, UserSettings>(FacetNames.UserSettings); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { var modelBuilder = new XdbModelBuilder(ModelKey, new XdbModelVersion(0, 1)); modelBuilder.ReferenceModel(Sitecore.XConnect.Collection.Model.CollectionModel.Model); modelBuilder.DefineFacet <Interaction, SampleOrder>(SampleOrder.DefaultFacetKey); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { XdbModelBuilder modelBuilder = new XdbModelBuilder("MySiteCollectionModel", new XdbModelVersion(1, 0)); modelBuilder.ReferenceModel(Sitecore.XConnect.Collection.Model.CollectionModel.Model); modelBuilder.DefineFacet <Contact, BusinessIndustry>(BusinessIndustry.DefaultFacetKey); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { XdbModelBuilder modelBuilder = new XdbModelBuilder(CollectionConst.SitecoreCinema.CollectionModelNames.CinemaDetailsCollectionModel, new XdbModelVersion(1, 1)); modelBuilder.ReferenceModel(Sitecore.XConnect.Collection.Model.CollectionModel.Model); modelBuilder.DefineFacet <Contact, CinemaDetails>(CollectionConst.FacetKeys.CinemaDetails); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { var xdbModelBuilder = new XdbModelBuilder("ContactCustomModel", new XdbModelVersion(1, 0)); xdbModelBuilder.DefineFacet <Contact, VolleyGroupFacet>(VolleyGroupFacet.DefaultFacetKey); xdbModelBuilder.ReferenceModel(CollectionModel.Model); return(xdbModelBuilder.BuildModel()); }
private static XdbModel BuildModel() { var modelBuilder = new XdbModelBuilder("GoogleApiModel", new XdbModelVersion(1, 0)); modelBuilder.ReferenceModel(Sitecore.XConnect.Collection.Model.CollectionModel.Model); modelBuilder.DefineFacet <Contact, GoogleApiFacet>(GoogleApiFacet.FacetName); modelBuilder.DefineEventType <CustomEvent>(true); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { XdbModelBuilder modelBuilder = new XdbModelBuilder("PetModel", new XdbModelVersion(1, 0)); modelBuilder.ReferenceModel(Sitecore.XConnect.Collection.Model.CollectionModel.Model); modelBuilder.DefineFacet <Sitecore.XConnect.Contact, Pet>("PetInfo"); return(modelBuilder.BuildModel()); }
private static XdbModel BuildModel() { XdbModelBuilder modelBuilder = new XdbModelBuilder("PushSubscriptionsModel", new XdbModelVersion(1, 0)); // Facets and events here modelBuilder.RegisterType <PushSubscription>(true); modelBuilder.DefineFacet <Contact, PushSubscriptions>(FacetNames.PushSubscriptions); return(modelBuilder.BuildModel()); }