public RelationModel(PayolaContext db) : base(db) { foreach (RelationType relationType in Db.RelationTypes) { AddGenericRelationType(relationType); // If the relation type is symmetric, it represents both the relations and inverse relations. Otherwise // the inverse relation type is different from the realtion type so it has to be added. if (!relationType.IsSymmetric) { AddGenericRelationType(relationType.InverseRelationType); } } }
public RelationModel(PayolaContext db) : base(db) { foreach (RelationType relationType in Db.RelationTypes) { AddGenericRelationType (relationType); // If the relation type is symmetric, it represents both the relations and inverse relations. Otherwise // the inverse relation type is different from the realtion type so it has to be added. if (!relationType.IsSymmetric) { AddGenericRelationType (relationType.InverseRelationType); } } }
public VehicleModel(PayolaContext db) : base(db) { // NOOP }
public StbDivisionModel(PayolaContext db) : base(db) { // NOOP }
public InformationModel(PayolaContext db) : base(db) { // NOOP }
public EmailModel(PayolaContext db) : base(db) { // NOOP }
public IncidentModel(PayolaContext db) : base(db) { // NOOP }
public InformativeEntityModel(PayolaContext db) : base(db) { // NOOP }
/// <summary> /// Initializes database connection. /// </summary> private static void InitializeDatabaseConnection() { Database.SetInitializer<PayolaContext> (new PayolaContextInitializer ()); _dbCtx = new PayolaContext (); }
public PersonModel(PayolaContext db) : base(db) { // NOOP }
/// <summary> /// The only constructor. /// </summary> /// <param name="path">String identifying the resource from which to scrape (local path, URL, ...).</param> public ScraperBase(PayolaContext ctx, string path) { _ctx = ctx; _path = path; }
public LinkScraper(PayolaContext ctx, string path) : base(ctx, path) { }
public IEntityModel GetEntityModel(Type entityType, PayolaContext db) { Type modelType = Type.GetType(typeof(EntityModel <>).Namespace + "." + entityType.Name + "Model"); return((IEntityModel)GetModel(modelType, db)); }
public ModelBase GetModel(Type modelType, PayolaContext db) { return((ModelBase)modelType.GetConstructor(new Type[] { typeof(PayolaContext) }).Invoke(new object[] { db })); }
public TModel GetModel <TModel> (PayolaContext db) where TModel : ModelBase { return((TModel)GetModel(typeof(TModel), db)); }
public EntityModel(PayolaContext db) : base(db) { // NOOP }
public CompanyModel(PayolaContext db) : base(db) { // NOOP }
public KeywordModel(PayolaContext db) : base(db) { // NOOP }
public ReportModel(PayolaContext db) : base(db) { // NOOP }
public AddressModel(PayolaContext db) : base(db) { // NOOP }
public PhoneModel(PayolaContext db) : base(db) { // NOOP }
public DirectoryScraper(PayolaContext ctx, string path) : base(ctx, path) { }