Questions tagged [domain-data-modelling]
26 questions
0
votes
0 answers
Model Entities that share properties in Microservice Architecture
Problem statement
In the real world, we have the Entities Assets (Images, Videos, Documents) and Collections (a set of Assets). Now, both these entities can have Categories (and a bunch shared properties more).
We are unsure how to model this.
Here…

agoldev
- 2,078
- 3
- 23
- 38
0
votes
1 answer
Should I have same inheritance of ebook and printedbooks in this case?
I am developing Library Management System which have two sorts of books (Ebook and PrintedBook).
I intends to make search capacity with both ebook and printedbook in the same page.
The only problem is that I see that ebook and printedbook are book.…

Cephas PAD
- 82
- 9
0
votes
1 answer
Designing Leaderboard Scores in DDD
There are two entities around this problem, mainly
Leaderboard - Which holds the info about type(lowest first/highest first), description, name etc.
Score - The score value submitted by the player which holds player details along with score…

Ayyappa
- 1,876
- 1
- 21
- 41
0
votes
1 answer
VisualStudio Architecture Modelling - how to export as an image?
I've generated a very large model that I need to put in a Technical Document. It wont fit its to big, over 8000 nodes and over 32000 links.
I've tried screenshot tools but they only do vertical scrolling, not both horizontal and vertical to get the…

Jeremy Thompson
- 61,933
- 36
- 195
- 321
0
votes
1 answer
Web Scraping Fbref table
My code so far, works for different table on FBref website, however struggling to get player details. The below code:
import requests
from bs4 import BeautifulSoup, Comment
url = 'https://fbref.com/en/squads/18bb7c10/Arsenal-Stats'
soup =…

DataModelMan
- 3
- 3
0
votes
0 answers
Retain the latest record in hive table
I have a table with around 100 million records, on a daily basis we get around 100K records with updates.
Currently we are applying a ROW_NUMBER on the timestamp and picking up the latest record by doing UNION ALL.
With this approach we are facing…

PK25
- 11
- 2
0
votes
1 answer
Domain class modelling conflict
I have a UserProfile class
public class UserProfile
{
public UserProfile()
{
}
public UserProfile(string userId)
{
AppUserId = userId;
}
[Key]
public int UserProfileId { get; set; }
public string…

dinotom
- 4,990
- 16
- 71
- 139
0
votes
3 answers
ASP.Net MVC - Is this entity layer a step too far?
I have a domain data model which returns a class such as the following:
public class ZombieDeath
{
public virtual int ZombieId {get;set;}
public virtual FatalHit {get;set;}
}
public class FatalHit
{
public virtual int HitId {get;set;}
…

djdd87
- 67,346
- 27
- 156
- 195
0
votes
0 answers
Mapping Entity Framework from Existing Database with Custom Field Structure
I'm using Entity Framework 6 with a Code First approach. We use a commercial, off the shelf software solution that I'm rolling up into our own custom application. In addition to having the basic tables for Employee, Salary, JobDetail where this is…

Mike
- 135
- 2
- 10
0
votes
2 answers
Using an interface/Inheritance as a marker when concrete type represents different choices of which there can only be one
Quite a mouth-full of a question but its a OO principle I've struggling with. Lets say i have an e-commerce app and there is the concept of payment method, examples could be CreditCard, Paypal, Apple pay etc. The user has a choice of which payment…

Luke De Feo
- 2,025
- 3
- 22
- 40
0
votes
1 answer
Instantiating objects - Polymorphism
I have a financial application that processes 'bonds'. I need to
Model the application to avoid an anaemic model (which i understand is bad).
Instantiate different implementations depending on the type of bond.
The system gets instructions from an…

sawe
- 1,141
- 14
- 24