- Data:
- 2009-12-23 11:26:06 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/adMoto.Payments.Core
- Pliki:
-
- 2 dodane
- 1 skopiowane
-
. (dodane)
-
Data (dodane)
-
Data/Platnosci.designer.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Platnosci.designer.cs) (14 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/Platnosci.designer.cs
r949 r970 3 3 // <auto-generated> 4 4 // This code was generated by a tool. 5 // Runtime Version:2.0.50727.3 0825 // Runtime Version:2.0.50727.3603 6 6 // 7 7 // Changes to this file may cause incorrect behavior and will be lost if … … 10 10 //------------------------------------------------------------------------------ 11 11 12 namespace Platnosci.Core.Linq12 namespace adMoto.Payments.Core.Data 13 13 { 14 14 using System.Data.Linq; … … 22 22 using System.ComponentModel; 23 23 using System; 24 using Platnosci.Core.Interface; 24 25 25 26 26 [System.Data.Linq.Mapping.DatabaseAttribute(Name="BAZA_REKLAM_TEST")] 27 27 public partial class PlatnosciDataContext : System.Data.Linq.DataContext 28 28 { 29 private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); 29 30 private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); 30 31 31 32 #region Extensibility Method Definitions … … 43 44 partial void UpdateFAKTURY(FAKTURY instance); 44 45 partial void DeleteFAKTURY(FAKTURY instance); 45 partial void Insert vPlatnosciEcard(vPlatnosciEcardinstance);46 partial void Update vPlatnosciEcard(vPlatnosciEcardinstance);47 partial void Delete vPlatnosciEcard(vPlatnosciEcardinstance);46 partial void InsertInvoice(Invoice instance); 47 partial void UpdateInvoice(Invoice instance); 48 partial void DeleteInvoice(Invoice instance); 48 49 #endregion 49 public PlatnosciDataContext() :base(global::Platnosci.Core.Properties.Settings.Default.BAZA_REKLAM_TESTConnectionString, mappingSource) 50 { 51 OnCreated(); 52 } 53 54 public PlatnosciDataContext(string connection) : base(connection, mappingSource) 55 { 56 OnCreated(); 57 } 58 59 public PlatnosciDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) 60 { 61 OnCreated(); 62 } 63 64 public PlatnosciDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :base(connection, mappingSource) 65 { 66 OnCreated(); 67 } 68 69 public PlatnosciDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :base(connection, mappingSource) 70 { 71 OnCreated(); 72 } 50 51 public PlatnosciDataContext() : 52 base(global::adMoto.Payments.Core.Properties.Settings.Default.BAZA_REKLAM_TESTConnectionString, mappingSource) 53 { 54 OnCreated(); 55 } 56 57 public PlatnosciDataContext(string connection) : 58 base(connection, mappingSource) 59 { 60 OnCreated(); 61 } 62 63 public PlatnosciDataContext(System.Data.IDbConnection connection) : 64 base(connection, mappingSource) 65 { 66 OnCreated(); 67 } 68 69 public PlatnosciDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 70 base(connection, mappingSource) 71 { 72 OnCreated(); 73 } 74 75 public PlatnosciDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 76 base(connection, mappingSource) 77 { 78 OnCreated(); 79 } 80 73 81 public System.Data.Linq.Table<PlatnosciEcard> PlatnosciEcards 74 82 { … … 103 111 } 104 112 105 public System.Data.Linq.Table< vPlatnosciEcard> vPlatnosciEcards106 { 107 get 108 { 109 return this.GetTable< vPlatnosciEcard>();113 public System.Data.Linq.Table<Invoice> Invoices 114 { 115 get 116 { 117 return this.GetTable<Invoice>(); 110 118 } 111 119 } … … 235 243 [Column(Storage="_IDFaktury", DbType="Int")] 236 244 [DataMember(Order=2)] 237 public System.Nullable<int> IDFaktury 245 public System.Nullable<int> IDFaktury 238 246 { 239 247 get … … 1964 1972 private EntitySet<FAKTURA_DETAIL> _FAKTURA_DETAILs; 1965 1973 1966 private EntitySet< vPlatnosciEcard> _vDanePlatnosciEcards;1974 private EntitySet<Invoice> _vDanePlatnosciEcards; 1967 1975 1968 1976 private bool serializing; … … 3054 3062 [Association(Name="FAKTURY_vPlatnosciEcard", Storage="_vDanePlatnosciEcards", ThisKey="ID_FAKTURY", OtherKey="ID_faktury")] 3055 3063 [DataMember(Order=48, EmitDefaultValue=false)] 3056 public EntitySet< vPlatnosciEcard> vPlatnosciEcards3064 public EntitySet<Invoice> Invoices 3057 3065 { 3058 3066 get … … 3115 3123 } 3116 3124 3117 private void attach_vDanePlatnosciEcards( vPlatnosciEcardentity)3125 private void attach_vDanePlatnosciEcards(Invoice entity) 3118 3126 { 3119 3127 this.SendPropertyChanging(); … … 3121 3129 } 3122 3130 3123 private void detach_vDanePlatnosciEcards( vPlatnosciEcardentity)3131 private void detach_vDanePlatnosciEcards(Invoice entity) 3124 3132 { 3125 3133 this.SendPropertyChanging(); … … 3131 3139 this._PlatnosciEcards = new EntitySet<PlatnosciEcard>(new Action<PlatnosciEcard>(this.attach_PlatnosciEcards), new Action<PlatnosciEcard>(this.detach_PlatnosciEcards)); 3132 3140 this._FAKTURA_DETAILs = new EntitySet<FAKTURA_DETAIL>(new Action<FAKTURA_DETAIL>(this.attach_FAKTURA_DETAILs), new Action<FAKTURA_DETAIL>(this.detach_FAKTURA_DETAILs)); 3133 this._vDanePlatnosciEcards = new EntitySet< vPlatnosciEcard>(new Action<vPlatnosciEcard>(this.attach_vDanePlatnosciEcards), new Action<vPlatnosciEcard>(this.detach_vDanePlatnosciEcards));3141 this._vDanePlatnosciEcards = new EntitySet<Invoice>(new Action<Invoice>(this.attach_vDanePlatnosciEcards), new Action<Invoice>(this.detach_vDanePlatnosciEcards)); 3134 3142 OnCreated(); 3135 3143 } … … 3159 3167 [Table(Name="dbo.vDanePlatnosciEcard")] 3160 3168 [DataContract()] 3161 public partial class vPlatnosciEcard: INotifyPropertyChanging, INotifyPropertyChanged3169 public partial class Invoice : INotifyPropertyChanging, INotifyPropertyChanged 3162 3170 { 3163 3171 … … 3272 3280 #endregion 3273 3281 3274 public vPlatnosciEcard()3282 public Invoice() 3275 3283 { 3276 3284 this.Initialize(); … … 3823 3831 { 3824 3832 this._FAKTURY.Entity = null; 3825 previousValue. vPlatnosciEcards.Remove(this);3833 previousValue.Invoices.Remove(this); 3826 3834 } 3827 3835 this._FAKTURY.Entity = value; 3828 3836 if ((value != null)) 3829 3837 { 3830 value. vPlatnosciEcards.Add(this);3838 value.Invoices.Add(this); 3831 3839 this._ID_faktury = value.ID_FAKTURY; 3832 3840 }
