Exemple #1
0
		///	<summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary>
		public void Copy_From(IOrt source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.Bezeichnung = source.Bezeichnung;
			this.Beschreibung = source.Beschreibung;
			this.OrtsTeilId = source.OrtsTeilId;
			this.GoogleAdressString = source.GoogleAdressString;
			this.WBreite = source.WBreite;
			this.WLaenge = source.WLaenge;
			this.OldSaveNameId = source.OldSaveNameId;
			this.OrteTypId = source.OrteTypId;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Exemple #2
0
		///	<summary> 
		///		This method copy's each database field which is in the <paramref name="includedColumns"/> 
		///		from the <paramref name="source"/> interface to this data row.
		/// </summary>
		public void Copy_From_But_TakeOnly(IOrt source, params string[] includedColumns)
		{
			if (includedColumns.Contains(OrteTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(OrteTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(OrteTable.BezeichnungCol)) this.Bezeichnung = source.Bezeichnung;
			if (includedColumns.Contains(OrteTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung;
			if (includedColumns.Contains(OrteTable.OrtsTeilIdCol)) this.OrtsTeilId = source.OrtsTeilId;
			if (includedColumns.Contains(OrteTable.GoogleAdressStringCol)) this.GoogleAdressString = source.GoogleAdressString;
			if (includedColumns.Contains(OrteTable.WBreiteCol)) this.WBreite = source.WBreite;
			if (includedColumns.Contains(OrteTable.WLaengeCol)) this.WLaenge = source.WLaenge;
			if (includedColumns.Contains(OrteTable.OldSaveNameIdCol)) this.OldSaveNameId = source.OldSaveNameId;
			if (includedColumns.Contains(OrteTable.OrteTypIdCol)) this.OrteTypId = source.OrteTypId;
			if (includedColumns.Contains(OrteTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Exemple #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IOrt target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.Bezeichnung = this.Bezeichnung;
			target.Beschreibung = this.Beschreibung;
			target.OrtsTeilId = this.OrtsTeilId;
			target.GoogleAdressString = this.GoogleAdressString;
			target.WBreite = this.WBreite;
			target.WLaenge = this.WLaenge;
			target.OldSaveNameId = this.OldSaveNameId;
			target.OrteTypId = this.OrteTypId;
			target.LastUpdateToken = this.LastUpdateToken;
		}