init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
942
Kreta.DataAccessGenerated/Entities/BeszerzesiSzallitotorzs.cs
Normal file
942
Kreta.DataAccessGenerated/Entities/BeszerzesiSzallitotorzs.cs
Normal file
|
@ -0,0 +1,942 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.DataAccess.Interfaces;
|
||||
using Kreta.Framework;
|
||||
using Kreta.Framework.Actions;
|
||||
using Kreta.Framework.Collections;
|
||||
using Kreta.Framework.Collections.Generic;
|
||||
using Kreta.Framework.Entities;
|
||||
using Kreta.Framework.Entities.Generic;
|
||||
using Kreta.Framework.Exceptions;
|
||||
|
||||
namespace SDA.Kreta.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Az UML modell BeszerzesiSzallitotorzs entitásának megvalósítása.
|
||||
/// </summary>
|
||||
/// <remarks>A kód teljes egészében generált, kézi módosítása nem megengedett!</remarks>
|
||||
[Entity("BeszerzesiSzallitotorzs")]
|
||||
// alapértelmezett EntityHistoryMode
|
||||
public class BeszerzesiSzallitotorzs : Entity, IBeszerzesiSzallitotorzs
|
||||
{
|
||||
internal protected BeszerzesiSzallitotorzs()
|
||||
: base()
|
||||
{
|
||||
}
|
||||
|
||||
public class AttributeInfo
|
||||
{
|
||||
public const string Adoszam = "Adoszam";
|
||||
public const string Ajto = "Ajto";
|
||||
public const string EmailCim = "EmailCim";
|
||||
public const string Emelet = "Emelet";
|
||||
public const string Hazszam = "Hazszam";
|
||||
public const string HelysegNev = "HelysegNev";
|
||||
public const string IrSzam = "IrSzam";
|
||||
public const string KepviseloNev = "KepviseloNev";
|
||||
public const string KozteruletJellegId = "KozteruletJellegId";
|
||||
public const string KozteruletNev = "KozteruletNev";
|
||||
public const string Nev = "Nev";
|
||||
public const string SAPKod = "SAPKod";
|
||||
public const string Telefonszam = "Telefonszam";
|
||||
public const string FizetesiMod = "FizetesiMod";
|
||||
}
|
||||
|
||||
public class AttributeLengthInfo
|
||||
{
|
||||
public const int AdoszamLength = 50;
|
||||
public const int AjtoLength = 50;
|
||||
public const int EmailCimLength = 255;
|
||||
public const int EmeletLength = 50;
|
||||
public const int HazszamLength = 50;
|
||||
public const int HelysegNevLength = 255;
|
||||
public const int IrSzamLength = 50;
|
||||
public const int KepviseloNevLength = 255;
|
||||
public const int KozteruletNevLength = 255;
|
||||
public const int NevLength = 500;
|
||||
public const int SAPKodLength = 50;
|
||||
public const int TelefonszamLength = 255;
|
||||
public const int FizetesiModLength = 50;
|
||||
}
|
||||
|
||||
#region General
|
||||
private BeszerzesiSzallitotorzsDA m_DA = new BeszerzesiSzallitotorzsDA();
|
||||
|
||||
protected static BeszerzesiSzallitotorzs FakeBeszerzesiSzallitotorzs { get; set; }
|
||||
|
||||
public static BeszerzesiSzallitotorzs GiveAnInstance()
|
||||
{
|
||||
BeszerzesiSzallitotorzs result = FakeBeszerzesiSzallitotorzs == null
|
||||
? new BeszerzesiSzallitotorzs()
|
||||
: (BeszerzesiSzallitotorzs)FakeBeszerzesiSzallitotorzs.MemberwiseClone();
|
||||
result.Reset();
|
||||
result.SetDefaultData();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
protected void SetDefaultData()
|
||||
{
|
||||
if (UserContext.Instance != null)
|
||||
{
|
||||
if (UserContext.Instance.IntezmenyId > 0)
|
||||
{
|
||||
IntezmenyId = UserContext.Instance.IntezmenyId;
|
||||
}
|
||||
|
||||
if (UserContext.Instance.AktivTanevId > 0)
|
||||
{
|
||||
TanevId = UserContext.Instance.AktivTanevId;
|
||||
}
|
||||
|
||||
m_State = EntityState.Uninitialized;
|
||||
}
|
||||
}
|
||||
|
||||
protected override IEntityDataAccessor GetDataAccessor() { return m_DA; }
|
||||
protected internal virtual IEntityDataAccessor InheritedDA { get { return null; } }
|
||||
|
||||
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
||||
public static IEntityCollection<BeszerzesiSzallitotorzs> LoadAll()
|
||||
{
|
||||
return LoadWithFilter("");
|
||||
}
|
||||
|
||||
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
||||
public static IEntityCollection<BeszerzesiSzallitotorzs> LoadAll(ColumnFilterMode columnFilterMode, IEnumerable<string> columns)
|
||||
{
|
||||
return LoadWithFilter("", columnFilterMode, columns);
|
||||
}
|
||||
|
||||
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
||||
public static IEntityCollection<BeszerzesiSzallitotorzs> LoadWithFilter(string filter, Dictionary<string, object> commandParameters = null)
|
||||
{
|
||||
var result = new EntityCollection<BeszerzesiSzallitotorzs>();
|
||||
new BeszerzesiSzallitotorzsDA().LoadWithFilter(result, filter, commandParameters);
|
||||
return result;
|
||||
}
|
||||
|
||||
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
||||
public static IEntityCollection<BeszerzesiSzallitotorzs> LoadWithFilter(string filter, ColumnFilterMode columnFilterMode, IEnumerable<string> columns, Dictionary<string, object> commandParameters = null)
|
||||
{
|
||||
var result = new EntityCollection<BeszerzesiSzallitotorzs>();
|
||||
new BeszerzesiSzallitotorzsDA().LoadWithFilter(result, filter, columnFilterMode, columns, commandParameters);
|
||||
return result;
|
||||
}
|
||||
|
||||
protected override void StoreOriginalValues()
|
||||
{
|
||||
base.StoreOriginalValues();
|
||||
OriginalValues.Add("Adoszam", (Adoszam == null ? (object)DBNull.Value : (object)m_Adoszam));
|
||||
OriginalValues.Add("Ajto", (Ajto == null ? (object)DBNull.Value : (object)m_Ajto));
|
||||
OriginalValues.Add("EmailCim", (EmailCim == null ? (object)DBNull.Value : (object)m_EmailCim));
|
||||
OriginalValues.Add("Emelet", (Emelet == null ? (object)DBNull.Value : (object)m_Emelet));
|
||||
OriginalValues.Add("Hazszam", (Hazszam == null ? (object)DBNull.Value : (object)m_Hazszam));
|
||||
OriginalValues.Add("HelysegNev", (HelysegNev == null ? (object)DBNull.Value : (object)m_HelysegNev));
|
||||
OriginalValues.Add("IrSzam", (IrSzam == null ? (object)DBNull.Value : (object)m_IrSzam));
|
||||
OriginalValues.Add("KepviseloNev", (KepviseloNev == null ? (object)DBNull.Value : (object)m_KepviseloNev));
|
||||
OriginalValues.Add("KozteruletJellegId", (KozteruletJellegId == null ? (object)DBNull.Value : (object)m_KozteruletJellegId));
|
||||
OriginalValues.Add("KozteruletNev", (KozteruletNev == null ? (object)DBNull.Value : (object)m_KozteruletNev));
|
||||
OriginalValues.Add("Nev", (Nev == null ? (object)DBNull.Value : (object)m_Nev));
|
||||
OriginalValues.Add("SAPKod", (SAPKod == null ? (object)DBNull.Value : (object)m_SAPKod));
|
||||
OriginalValues.Add("Telefonszam", (Telefonszam == null ? (object)DBNull.Value : (object)m_Telefonszam));
|
||||
OriginalValues.Add("FizetesiMod", (FizetesiMod == null ? (object)DBNull.Value : (object)m_FizetesiMod));
|
||||
OriginalValues.Add("IntezmenyId", (m_IntezmenyId < 0 ? (object)DBNull.Value : (object)m_IntezmenyId));
|
||||
OriginalValues.Add("TanevId", (m_TanevId < 0 ? (object)DBNull.Value : (object)m_TanevId));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Ellenőrzés
|
||||
|
||||
protected override void Validate(bool skipValidateAttributes = false)
|
||||
{
|
||||
base.Validate();
|
||||
|
||||
if (!skipValidateAttributes)
|
||||
{
|
||||
// korlátos hosszúságú mezők ellenőrzése...
|
||||
if (m_Adoszam != null && m_Adoszam.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "Adoszam", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_Ajto != null && m_Ajto.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "Ajto", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_EmailCim != null && m_EmailCim.Length > 255)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "EmailCim", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_Emelet != null && m_Emelet.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "Emelet", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_Hazszam != null && m_Hazszam.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "Hazszam", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_HelysegNev != null && m_HelysegNev.Length > 255)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "HelysegNev", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_IrSzam != null && m_IrSzam.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "IrSzam", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_KepviseloNev != null && m_KepviseloNev.Length > 255)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "KepviseloNev", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_KozteruletNev != null && m_KozteruletNev.Length > 255)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "KozteruletNev", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_Nev != null && m_Nev.Length > 500)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "Nev", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_SAPKod != null && m_SAPKod.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "SAPKod", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_Telefonszam != null && m_Telefonszam.Length > 255)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "Telefonszam", EntityAttributeError.TooLong);
|
||||
}
|
||||
if (m_FizetesiMod != null && m_FizetesiMod.Length > 50)
|
||||
{
|
||||
throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "FizetesiMod", EntityAttributeError.TooLong);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// kötelező asszociációk ellenőrzése...
|
||||
if (m_IntezmenyId == -1) { throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "IntezmenyId", EntityAttributeError.Empty); }
|
||||
if (m_TanevId == -1) { throw new InvalidEntityAttributeException("BeszerzesiSzallitotorzs", "TanevId", EntityAttributeError.Empty); }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Alaphelyzetbe állítás
|
||||
protected override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
|
||||
// alaphelyzetbe állítjuk az egyszerű mezőket
|
||||
this.m_Adoszam = null;
|
||||
this.m_Ajto = null;
|
||||
this.m_EmailCim = null;
|
||||
this.m_Emelet = null;
|
||||
this.m_Hazszam = null;
|
||||
this.m_HelysegNev = null;
|
||||
this.m_IrSzam = null;
|
||||
this.m_KepviseloNev = null;
|
||||
this.m_KozteruletJellegId = null;
|
||||
this.m_KozteruletNev = null;
|
||||
this.m_Nev = null;
|
||||
this.m_SAPKod = null;
|
||||
this.m_Telefonszam = null;
|
||||
this.m_FizetesiMod = null;
|
||||
|
||||
// alaphelyzetbe állítjuk az asszociációkból származó mezőket
|
||||
this.m_IntezmenyId = -1;
|
||||
this.m_Intezmeny = null; // Entity
|
||||
this.m_TanevId = -1;
|
||||
this.m_Tanev = null; // Entity
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected override void DeAssociateBeforeDelete(bool runHandler = false)
|
||||
{
|
||||
// Nem kaszkád törölhető asszociációk ellenőrzése, hogy üresek-e...
|
||||
|
||||
// Intezmeny esetében mi mutatunk a másikra: startrole: *, endrole: 1
|
||||
// Tanev esetében mi mutatunk a másikra: startrole: *, endrole: 1
|
||||
|
||||
// kaszkád törlések...
|
||||
|
||||
}
|
||||
|
||||
#region Mezők és tulajdonságok
|
||||
|
||||
#region Egyszerű mezők
|
||||
|
||||
#region Adoszam
|
||||
|
||||
protected internal string m_Adoszam;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("Adoszam", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string Adoszam
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Adoszam;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_Adoszam == value) return;
|
||||
m_Adoszam = value;
|
||||
FieldModified("Adoszam", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Ajto
|
||||
|
||||
protected internal string m_Ajto;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("Ajto", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string Ajto
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Ajto;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_Ajto == value) return;
|
||||
m_Ajto = value;
|
||||
FieldModified("Ajto", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region EmailCim
|
||||
|
||||
protected internal string m_EmailCim;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("EmailCim", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string EmailCim
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_EmailCim;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_EmailCim == value) return;
|
||||
m_EmailCim = value;
|
||||
FieldModified("EmailCim", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Emelet
|
||||
|
||||
protected internal string m_Emelet;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("Emelet", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string Emelet
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Emelet;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_Emelet == value) return;
|
||||
m_Emelet = value;
|
||||
FieldModified("Emelet", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Hazszam
|
||||
|
||||
protected internal string m_Hazszam;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("Hazszam", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string Hazszam
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Hazszam;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_Hazszam == value) return;
|
||||
m_Hazszam = value;
|
||||
FieldModified("Hazszam", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region HelysegNev
|
||||
|
||||
protected internal string m_HelysegNev;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("HelysegNev", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string HelysegNev
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_HelysegNev;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_HelysegNev == value) return;
|
||||
m_HelysegNev = value;
|
||||
FieldModified("HelysegNev", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IrSzam
|
||||
|
||||
protected internal string m_IrSzam;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("IrSzam", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string IrSzam
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_IrSzam;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_IrSzam == value) return;
|
||||
m_IrSzam = value;
|
||||
FieldModified("IrSzam", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region KepviseloNev
|
||||
|
||||
protected internal string m_KepviseloNev;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("KepviseloNev", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string KepviseloNev
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_KepviseloNev;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_KepviseloNev == value) return;
|
||||
m_KepviseloNev = value;
|
||||
FieldModified("KepviseloNev", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region KozteruletJellegId
|
||||
|
||||
protected internal int? /* DictionaryItem */ m_KozteruletJellegId;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("KozteruletJellegId", EntityPropertyBaseType.ValueType, typeof(int /* DictionaryItem */), EntityCopyMethod.ShallowCopy)]
|
||||
[EntityDictionaryItemProperty("KozteruletJellegId", "KozteruletJelleg", typeof(SDA.Kreta.Entities.KozteruletJelleg))]
|
||||
|
||||
public virtual int? /* DictionaryItem */ KozteruletJellegId
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_KozteruletJellegId;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_KozteruletJellegId == value) return;
|
||||
m_KozteruletJellegId = value;
|
||||
FieldModified("KozteruletJellegId", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region KozteruletNev
|
||||
|
||||
protected internal string m_KozteruletNev;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("KozteruletNev", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string KozteruletNev
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_KozteruletNev;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_KozteruletNev == value) return;
|
||||
m_KozteruletNev = value;
|
||||
FieldModified("KozteruletNev", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nev
|
||||
|
||||
protected internal string m_Nev;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("Nev", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string Nev
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Nev;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_Nev == value) return;
|
||||
m_Nev = value;
|
||||
FieldModified("Nev", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region SAPKod
|
||||
|
||||
protected internal string m_SAPKod;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("SAPKod", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string SAPKod
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_SAPKod;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_SAPKod == value) return;
|
||||
m_SAPKod = value;
|
||||
FieldModified("SAPKod", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Telefonszam
|
||||
|
||||
protected internal string m_Telefonszam;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("Telefonszam", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string Telefonszam
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Telefonszam;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_Telefonszam == value) return;
|
||||
m_Telefonszam = value;
|
||||
FieldModified("Telefonszam", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region FizetesiMod
|
||||
|
||||
protected internal string m_FizetesiMod;
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
[EntityProperty("FizetesiMod", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual string FizetesiMod
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_FizetesiMod;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
|
||||
if (m_FizetesiMod == value) return;
|
||||
m_FizetesiMod = value;
|
||||
FieldModified("FizetesiMod", value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Asszociációkkal kapcsolatos dolgok
|
||||
|
||||
#region BeszerzesiSzallitotorzs (*) -> Intezmeny (1)
|
||||
|
||||
protected internal int m_IntezmenyId = -1;
|
||||
|
||||
/// <summary>
|
||||
/// A(z) Intezmeny asszociáció végpontjának ID-ja.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// - Insert() előtt célszerű kitölteni
|
||||
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
|
||||
/// - LoadByID() felhozza ezt a mezőt
|
||||
/// </remarks>
|
||||
public virtual int IntezmenyId
|
||||
{
|
||||
get
|
||||
{
|
||||
return InternalIntezmenyId;
|
||||
}
|
||||
set
|
||||
{
|
||||
InternalIntezmenyId = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ez egy külön bejárat a DA számára
|
||||
/// <summary>
|
||||
internal int InternalIntezmenyId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_Intezmeny != null)
|
||||
{
|
||||
return m_Intezmeny.ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_IntezmenyId;// XXX az meg nem teljesen OK
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
if (m_IntezmenyId != value)
|
||||
{
|
||||
m_IntezmenyId = value;
|
||||
m_Intezmeny = null;
|
||||
FieldModified("IntezmenyId", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ez egy külön bejárat a DA számára
|
||||
/// <summary>
|
||||
internal void ModifyIntezmeny(Intezmeny value)
|
||||
{
|
||||
m_IntezmenyId = value != null ? value.ID : -1;
|
||||
m_Intezmeny = value;
|
||||
FieldModified("IntezmenyId", value != null ? (object)value.ID : DBNull.Value);
|
||||
}
|
||||
|
||||
protected internal void SetIntezmeny(Intezmeny value)
|
||||
{
|
||||
m_Intezmeny = value;
|
||||
if (value != null)
|
||||
{
|
||||
m_IntezmenyId = value.ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_IntezmenyId = -1;
|
||||
}
|
||||
}
|
||||
|
||||
protected Intezmeny m_Intezmeny = null;
|
||||
|
||||
IIntezmeny IBeszerzesiSzallitotorzs.Intezmeny
|
||||
{
|
||||
get { return Intezmeny; }
|
||||
set { Intezmeny = value as Intezmeny; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Az UML modellben szereplő BeszerzesiSzallitotorzs és Intezmeny entitások közötti asszociáció megvalósítása.
|
||||
/// </remarks>
|
||||
[EntityProperty("Intezmeny", EntityPropertyBaseType.Entity, typeof(Intezmeny), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual Intezmeny Intezmeny
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((m_Intezmeny == null) && (m_IntezmenyId != -1))
|
||||
{
|
||||
SDA.Kreta.Entities.Intezmeny partner = SDA.Kreta.Entities.Intezmeny.GiveAnInstance();
|
||||
partner.LoadByID(m_IntezmenyId);
|
||||
|
||||
this.SetIntezmeny(partner);
|
||||
}
|
||||
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
|
||||
return m_Intezmeny;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
if (value != null)
|
||||
{
|
||||
if ((m_Intezmeny == null) || (value.ID != m_Intezmeny.ID))
|
||||
{
|
||||
if (value.State != EntityState.Initialized)
|
||||
{
|
||||
throw new EntityStateException(value.State);
|
||||
}
|
||||
if ((this.State != EntityState.New))
|
||||
{
|
||||
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
|
||||
SDA.Kreta.Entities.Intezmeny_BeszerzesiSzallitotorzs_DA da = new Intezmeny_BeszerzesiSzallitotorzs_DA(value);
|
||||
da.AddItem(this);
|
||||
this.SetIntezmeny(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SetIntezmeny(value);
|
||||
}
|
||||
FieldModified("IntezmenyId", value.ID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// ki kell törölni a kapcsolatot az adatbázisban
|
||||
this.SetIntezmeny(null);
|
||||
UpdateAssociations();
|
||||
FieldModified("IntezmenyId", DBNull.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BeszerzesiSzallitotorzs (*) -> Tanev (1)
|
||||
|
||||
protected internal int m_TanevId = -1;
|
||||
|
||||
/// <summary>
|
||||
/// A(z) Tanev asszociáció végpontjának ID-ja.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// - Insert() előtt célszerű kitölteni
|
||||
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
|
||||
/// - LoadByID() felhozza ezt a mezőt
|
||||
/// </remarks>
|
||||
public virtual int TanevId
|
||||
{
|
||||
get
|
||||
{
|
||||
return InternalTanevId;
|
||||
}
|
||||
set
|
||||
{
|
||||
InternalTanevId = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ez egy külön bejárat a DA számára
|
||||
/// <summary>
|
||||
internal int InternalTanevId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_Tanev != null)
|
||||
{
|
||||
return m_Tanev.ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_TanevId;// XXX az meg nem teljesen OK
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
if (m_TanevId != value)
|
||||
{
|
||||
m_TanevId = value;
|
||||
m_Tanev = null;
|
||||
FieldModified("TanevId", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ez egy külön bejárat a DA számára
|
||||
/// <summary>
|
||||
internal void ModifyTanev(Tanev value)
|
||||
{
|
||||
m_TanevId = value != null ? value.ID : -1;
|
||||
m_Tanev = value;
|
||||
FieldModified("TanevId", value != null ? (object)value.ID : DBNull.Value);
|
||||
}
|
||||
|
||||
protected internal void SetTanev(Tanev value)
|
||||
{
|
||||
m_Tanev = value;
|
||||
if (value != null)
|
||||
{
|
||||
m_TanevId = value.ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_TanevId = -1;
|
||||
}
|
||||
}
|
||||
|
||||
protected Tanev m_Tanev = null;
|
||||
|
||||
ITanev IBeszerzesiSzallitotorzs.Tanev
|
||||
{
|
||||
get { return Tanev; }
|
||||
set { Tanev = value as Tanev; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Nincs definiálva megjegyzés.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Az UML modellben szereplő BeszerzesiSzallitotorzs és Tanev entitások közötti asszociáció megvalósítása.
|
||||
/// </remarks>
|
||||
[EntityProperty("Tanev", EntityPropertyBaseType.Entity, typeof(Tanev), EntityCopyMethod.ShallowCopy)]
|
||||
public virtual Tanev Tanev
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((m_Tanev == null) && (m_TanevId != -1))
|
||||
{
|
||||
SDA.Kreta.Entities.Tanev partner = SDA.Kreta.Entities.Tanev.GiveAnInstance();
|
||||
partner.LoadByID(m_TanevId);
|
||||
|
||||
this.SetTanev(partner);
|
||||
}
|
||||
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
|
||||
return m_Tanev;
|
||||
}
|
||||
set
|
||||
{
|
||||
CheckModifyable();
|
||||
if (value != null)
|
||||
{
|
||||
if ((m_Tanev == null) || (value.ID != m_Tanev.ID))
|
||||
{
|
||||
if (value.State != EntityState.Initialized)
|
||||
{
|
||||
throw new EntityStateException(value.State);
|
||||
}
|
||||
if ((this.State != EntityState.New))
|
||||
{
|
||||
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
|
||||
SDA.Kreta.Entities.Tanev_BeszerzesiSzallitotorzs_DA da = new Tanev_BeszerzesiSzallitotorzs_DA(value);
|
||||
da.AddItem(this);
|
||||
this.SetTanev(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SetTanev(value);
|
||||
}
|
||||
FieldModified("TanevId", value.ID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// ki kell törölni a kapcsolatot az adatbázisban
|
||||
this.SetTanev(null);
|
||||
UpdateAssociations();
|
||||
FieldModified("TanevId", DBNull.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue