Click here to Skip to main content
15,915,319 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: cloud storage service like google drive Pin
Vivi Chellappa27-Mar-15 21:54
professionalVivi Chellappa27-Mar-15 21:54 
GeneralRe: cloud storage service like google drive Pin
Sascha Lefèvre28-Mar-15 3:55
professionalSascha Lefèvre28-Mar-15 3:55 
GeneralRe: cloud storage service like google drive Pin
jschell31-Mar-15 13:25
jschell31-Mar-15 13:25 
GeneralRe: cloud storage service like google drive Pin
Vivi Chellappa3-Apr-15 19:42
professionalVivi Chellappa3-Apr-15 19:42 
QuestionSending data through internet from computer to embedded device. Pin
luqman hakim8-Mar-15 7:08
luqman hakim8-Mar-15 7:08 
GeneralRe: Sending data through internet from computer to embedded device. Pin
Richard MacCutchan8-Mar-15 7:19
mveRichard MacCutchan8-Mar-15 7:19 
AnswerRe: Sending data through internet from computer to embedded device. Pin
Eddy Vluggen9-Mar-15 6:41
professionalEddy Vluggen9-Mar-15 6:41 
QuestionInformation Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 2:52
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 2:52 
Introduction
For a project i'm working on, i have to find a good way to store what actor information's are known to another actor. And it's starting to get a bit over my head.

Model-Classes

EntityModel - Base class for all entities
C#
using System;
using System.Xml.Serialization;

namespace Relink.Data.Model {

	[Serializable]
	public class EntityModel {

		[XmlIgnore]
		public Int32 EntityID {
			get;
			set;
		}

		#region XML Wrapper
		[XmlElement("EntityID")]
		public String XmlEntityID {
			get {
				return this.EntityID.ToString();
			}
			set {
				try {
					this.EntityID = (Int32)Int32.Parse(value);
				} catch {
					throw new NotImplementedException();
				}
			}
		}
		#endregion

	}

}


ActorModel - Base class for all actor's
C#
using Relink.Data.Enum;
using System;
using System.Xml.Serialization;

namespace Relink.Data.Model {

	[Serializable]
	public class ActorModel : EntityModel {

		public String Firstname {
			get;
			set;
		}
		public String Lastname {
			get;
			set;
		}
		public String Nickname {
			get;
			set;
		}
		[XmlIgnore]
		public Gender Gender {
			get;
			set;
		}
		[XmlIgnore]
		public DateTime Birthday {
			get;
			set;
		}
		public String Emailadress {
			get;
			set;
		}
		public String City {
			get;
			set;
		}
		public String Country {
			get;
			set;
		}

		#region XML Wrapper
		[XmlElement("Gender")]
		public String XmlGender {
			get {
				return this.Gender.ToString();
			}
			set {
				try {
					this.Gender = (Gender)System.Enum.Parse(typeof(Gender), value);
				} catch {
					throw new NotImplementedException();
				}
			}
		}
		[XmlElement("Birthday")]
		public String XmlBirthday {
			get {
				return this.Birthday.ToString();
			}
			set {
				try {
					this.Birthday = DateTime.Parse(value);
				} catch {
					throw new NotImplementedException();
				}
			}
		}
		#endregion

	}

}


Description
Basically i need to store what information's each actor has about another actor, similar to a boiled down facebook. The problem is, this has to scale for a couple hundred actors at once, i.e. this could get out of hand pretty fast.

Question
Is there a decent way to accomplish something like that, or do i have to boil the whole idea down a bit and make it just a "who know's who" sort of thing?
AnswerRe: Information Relation Modeling Pin
manchanx2-Mar-15 6:53
professionalmanchanx2-Mar-15 6:53 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 7:25
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 7:25 
GeneralRe: Information Relation Modeling Pin
manchanx2-Mar-15 8:36
professionalmanchanx2-Mar-15 8:36 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 8:59
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 8:59 
AnswerRe: Information Relation Modeling Pin
Eddy Vluggen2-Mar-15 8:00
professionalEddy Vluggen2-Mar-15 8:00 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 8:41
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 8:41 
AnswerRe: Information Relation Modeling Pin
Gerry Schmitz3-Mar-15 13:30
mveGerry Schmitz3-Mar-15 13:30 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)4-Mar-15 2:02
professionalDaniel Lieberwirth (BrainInBlack)4-Mar-15 2:02 
GeneralRe: Information Relation Modeling Pin
Gerry Schmitz4-Mar-15 23:27
mveGerry Schmitz4-Mar-15 23:27 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)5-Mar-15 2:28
professionalDaniel Lieberwirth (BrainInBlack)5-Mar-15 2:28 
NewsRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)7-Mar-15 4:34
professionalDaniel Lieberwirth (BrainInBlack)7-Mar-15 4:34 
QuestionPrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 7:21
professionalmanchanx25-Feb-15 7:21 
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Wendelius25-Feb-15 7:57
mentorWendelius25-Feb-15 7:57 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:24
professionalmanchanx25-Feb-15 21:24 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell26-Feb-15 9:45
jschell26-Feb-15 9:45 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 20:20
professionalmanchanx26-Feb-15 20:20 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell27-Feb-15 10:19
jschell27-Feb-15 10:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.