-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEscuelaDatabase.designer.cs
More file actions
3313 lines (2912 loc) · 87.6 KB
/
Copy pathEscuelaDatabase.designer.cs
File metadata and controls
3313 lines (2912 loc) · 87.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Escuela
{
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Escuela")]
public partial class EscuelaDatabaseDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InserttblAlumno(tblAlumno instance);
partial void UpdatetblAlumno(tblAlumno instance);
partial void DeletetblAlumno(tblAlumno instance);
partial void InserttblUsuario(tblUsuario instance);
partial void UpdatetblUsuario(tblUsuario instance);
partial void DeletetblUsuario(tblUsuario instance);
partial void InserttblCargasAlumno(tblCargasAlumno instance);
partial void UpdatetblCargasAlumno(tblCargasAlumno instance);
partial void DeletetblCargasAlumno(tblCargasAlumno instance);
partial void InserttblCargasDocente(tblCargasDocente instance);
partial void UpdatetblCargasDocente(tblCargasDocente instance);
partial void DeletetblCargasDocente(tblCargasDocente instance);
partial void InserttblCarrera(tblCarrera instance);
partial void UpdatetblCarrera(tblCarrera instance);
partial void DeletetblCarrera(tblCarrera instance);
partial void InserttblMaestro(tblMaestro instance);
partial void UpdatetblMaestro(tblMaestro instance);
partial void DeletetblMaestro(tblMaestro instance);
partial void InserttblMateria(tblMateria instance);
partial void UpdatetblMateria(tblMateria instance);
partial void DeletetblMateria(tblMateria instance);
partial void InserttblMateriasCarrera(tblMateriasCarrera instance);
partial void UpdatetblMateriasCarrera(tblMateriasCarrera instance);
partial void DeletetblMateriasCarrera(tblMateriasCarrera instance);
#endregion
public EscuelaDatabaseDataContext() :
base(global::Escuela.Properties.Settings.Default.EscuelaConnectionString, mappingSource)
{
OnCreated();
}
public EscuelaDatabaseDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public EscuelaDatabaseDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public EscuelaDatabaseDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public EscuelaDatabaseDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<tblAlumno> tblAlumnos
{
get
{
return this.GetTable<tblAlumno>();
}
}
public System.Data.Linq.Table<tblUsuario> tblUsuarios
{
get
{
return this.GetTable<tblUsuario>();
}
}
public System.Data.Linq.Table<tblCargasAlumno> tblCargasAlumnos
{
get
{
return this.GetTable<tblCargasAlumno>();
}
}
public System.Data.Linq.Table<tblCargasDocente> tblCargasDocentes
{
get
{
return this.GetTable<tblCargasDocente>();
}
}
public System.Data.Linq.Table<tblCarrera> tblCarreras
{
get
{
return this.GetTable<tblCarrera>();
}
}
public System.Data.Linq.Table<tblMaestro> tblMaestros
{
get
{
return this.GetTable<tblMaestro>();
}
}
public System.Data.Linq.Table<tblMateria> tblMaterias
{
get
{
return this.GetTable<tblMateria>();
}
}
public System.Data.Linq.Table<tblMateriasCarrera> tblMateriasCarreras
{
get
{
return this.GetTable<tblMateriasCarrera>();
}
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarAlumno")]
public int ActualizarAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="AlumnoID", DbType="Int")] System.Nullable<int> alumnoID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreAlumno", DbType="VarChar(1)")] string nombreAlumno, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), alumnoID, nombreAlumno, carreraID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerUsuarios")]
public ISingleResult<ObtenerUsuariosResult> ObtenerUsuarios()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerUsuariosResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarCargaAlumno")]
public int ActualizarCargaAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="AlumnoID", DbType="Int")] System.Nullable<int> alumnoID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID, alumnoID, carreraID, materiaID, maestroID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarCargaDocente")]
public int ActualizarCargaDocente([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID, maestroID, carreraID, materiaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarCarrera")]
public int ActualizarCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreCarrera", DbType="VarChar(1)")] string nombreCarrera)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID, nombreCarrera);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarMaestro")]
public int ActualizarMaestro([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreMaestro", DbType="VarChar(1)")] string nombreMaestro, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Dirección", DbType="VarChar(1)")] string dirección)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), maestroID, nombreMaestro, dirección);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarUsuario")]
public int ActualizarUsuario([global::System.Data.Linq.Mapping.ParameterAttribute(Name="UsuarioID", DbType="Int")] System.Nullable<int> usuarioID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreUsuario", DbType="VarChar(1)")] string nombreUsuario, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Contraseña", DbType="VarChar(1)")] string contraseña)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), usuarioID, nombreUsuario, contraseña);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarAlumno")]
public ISingleResult<BuscarAlumnoResult> BuscarAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="AlumnoID", DbType="Int")] System.Nullable<int> alumnoID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), alumnoID);
return ((ISingleResult<BuscarAlumnoResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarAlumnoIDPorNombreAlumno")]
public ISingleResult<BuscarAlumnoIDPorNombreAlumnoResult> BuscarAlumnoIDPorNombreAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreAlumno", DbType="VarChar(1)")] string nombreAlumno)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), nombreAlumno);
return ((ISingleResult<BuscarAlumnoIDPorNombreAlumnoResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarCargaAlumno")]
public ISingleResult<BuscarCargaAlumnoResult> BuscarCargaAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID);
return ((ISingleResult<BuscarCargaAlumnoResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarCargaDocente")]
public ISingleResult<BuscarCargaDocenteResult> BuscarCargaDocente([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID);
return ((ISingleResult<BuscarCargaDocenteResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarCarrera")]
public ISingleResult<BuscarCarreraResult> BuscarCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID);
return ((ISingleResult<BuscarCarreraResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarMaestro")]
public ISingleResult<BuscarMaestroResult> BuscarMaestro([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), maestroID);
return ((ISingleResult<BuscarMaestroResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarMateriasPorCarreraID")]
public ISingleResult<BuscarMateriasPorCarreraIDResult> BuscarMateriasPorCarreraID([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID);
return ((ISingleResult<BuscarMateriasPorCarreraIDResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarUsuario")]
public ISingleResult<BuscarUsuarioResult> BuscarUsuario([global::System.Data.Linq.Mapping.ParameterAttribute(Name="UsuarioID", DbType="Int")] System.Nullable<int> usuarioID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), usuarioID);
return ((ISingleResult<BuscarUsuarioResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarAlumno")]
public int EliminarAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="AlumnoID", DbType="Int")] System.Nullable<int> alumnoID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), alumnoID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarCargaAlumno")]
public int EliminarCargaAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarCargaDocente")]
public int EliminarCargaDocente([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarCarrera")]
public int EliminarCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarMaestro")]
public int EliminarMaestro([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), maestroID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarUsuario")]
public int EliminarUsuario([global::System.Data.Linq.Mapping.ParameterAttribute(Name="UsuarioID", DbType="Int")] System.Nullable<int> usuarioID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), usuarioID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarAlumno")]
public int InsertarAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreAlumno", DbType="VarChar(1)")] string nombreAlumno, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), nombreAlumno, carreraID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarCargaAlumno")]
public int InsertarCargaAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="AlumnoID", DbType="Int")] System.Nullable<int> alumnoID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), alumnoID, carreraID, materiaID, maestroID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarCargaDocente")]
public int InsertarCargaDocente([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), maestroID, carreraID, materiaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarCarrera")]
public int InsertarCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreCarrera", DbType="VarChar(1)")] string nombreCarrera)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), nombreCarrera);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarMaestro")]
public int InsertarMaestro([global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreMaestro", DbType="VarChar(1)")] string nombreMaestro, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Dirección", DbType="VarChar(1)")] string dirección)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), nombreMaestro, dirección);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarUsuario")]
public int InsertarUsuario([global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreUsuario", DbType="VarChar(1)")] string nombreUsuario, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Contraseña", DbType="VarChar(1)")] string contraseña)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), nombreUsuario, contraseña);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerAlumnos")]
public ISingleResult<ObtenerAlumnosResult> ObtenerAlumnos()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerAlumnosResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerCargasAlumnos")]
public ISingleResult<ObtenerCargasAlumnosResult> ObtenerCargasAlumnos()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerCargasAlumnosResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerCargasDocentes")]
public ISingleResult<ObtenerCargasDocentesResult> ObtenerCargasDocentes()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerCargasDocentesResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerCarreras")]
public ISingleResult<ObtenerCarrerasResult> ObtenerCarreras()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerCarrerasResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerMaestros")]
public ISingleResult<ObtenerMaestrosResult> ObtenerMaestros()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerMaestrosResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerMaterias")]
public ISingleResult<ObtenerMateriasResult> ObtenerMaterias()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerMateriasResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarMateria")]
public int ActualizarMateria([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreMateria", DbType="VarChar(1)")] string nombreMateria)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), materiaID, nombreMateria);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarMateria")]
public int EliminarMateria([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), materiaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarMateriasNoAsignadasCD")]
public ISingleResult<BuscarMateriasNoAsignadasCDResult> BuscarMateriasNoAsignadasCD([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MaestroID", DbType="Int")] System.Nullable<int> maestroID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), maestroID, carreraID);
return ((ISingleResult<BuscarMateriasNoAsignadasCDResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarMateriasNoAsignadasCA")]
public ISingleResult<BuscarMateriasNoAsignadasCAResult> BuscarMateriasNoAsignadasCA([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="AlumnoID", DbType="Int")] System.Nullable<int> alumnoID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID, alumnoID);
return ((ISingleResult<BuscarMateriasNoAsignadasCAResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarMaestrosPorMateriaID")]
public ISingleResult<BuscarMaestrosPorMateriaIDResult> BuscarMaestrosPorMateriaID([global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), materiaID);
return ((ISingleResult<BuscarMaestrosPorMateriaIDResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarNombreAlumno")]
public ISingleResult<BuscarNombreAlumnoResult> BuscarNombreAlumno([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID);
return ((ISingleResult<BuscarNombreAlumnoResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.InsertarRelacionMateriasCarrera")]
public int InsertarRelacionMateriasCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID, materiaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.EliminarRelacionMateriasCarrera")]
public int EliminarRelacionMateriasCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraID", DbType="Int")] System.Nullable<int> carreraID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraID, materiaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ActualizarRelacionMateriasCarrera")]
public int ActualizarRelacionMateriasCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraIDAnterior", DbType="Int")] System.Nullable<int> carreraIDAnterior, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="CarreraIDNuevo", DbType="Int")] System.Nullable<int> carreraIDNuevo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="MateriaID", DbType="Int")] System.Nullable<int> materiaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), carreraIDAnterior, carreraIDNuevo, materiaID);
return ((int)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.ObtenerRelacionMateriasCarrera")]
public ISingleResult<ObtenerRelacionMateriasCarreraResult> ObtenerRelacionMateriasCarrera()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<ObtenerRelacionMateriasCarreraResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarRelacionMateriasCarrera")]
public ISingleResult<BuscarRelacionMateriasCarreraResult> BuscarRelacionMateriasCarrera([global::System.Data.Linq.Mapping.ParameterAttribute(Name="NombreMateria", DbType="VarChar(80)")] string nombreMateria)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), nombreMateria);
return ((ISingleResult<BuscarRelacionMateriasCarreraResult>)(result.ReturnValue));
}
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.BuscarCargaDocenteCargaID")]
public ISingleResult<BuscarCargaDocenteCargaIDResult> BuscarCargaDocenteCargaID([global::System.Data.Linq.Mapping.ParameterAttribute(Name="CargaID", DbType="Int")] System.Nullable<int> cargaID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), cargaID);
return ((ISingleResult<BuscarCargaDocenteCargaIDResult>)(result.ReturnValue));
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblAlumnos")]
public partial class tblAlumno : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _AlumnoID;
private string _NombreAlumno;
private int _CarreraID;
private EntitySet<tblCargasAlumno> _tblCargasAlumnos;
private EntityRef<tblCarrera> _tblCarrera;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnAlumnoIDChanging(int value);
partial void OnAlumnoIDChanged();
partial void OnNombreAlumnoChanging(string value);
partial void OnNombreAlumnoChanged();
partial void OnCarreraIDChanging(int value);
partial void OnCarreraIDChanged();
#endregion
public tblAlumno()
{
this._tblCargasAlumnos = new EntitySet<tblCargasAlumno>(new Action<tblCargasAlumno>(this.attach_tblCargasAlumnos), new Action<tblCargasAlumno>(this.detach_tblCargasAlumnos));
this._tblCarrera = default(EntityRef<tblCarrera>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AlumnoID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int AlumnoID
{
get
{
return this._AlumnoID;
}
set
{
if ((this._AlumnoID != value))
{
this.OnAlumnoIDChanging(value);
this.SendPropertyChanging();
this._AlumnoID = value;
this.SendPropertyChanged("AlumnoID");
this.OnAlumnoIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NombreAlumno", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
public string NombreAlumno
{
get
{
return this._NombreAlumno;
}
set
{
if ((this._NombreAlumno != value))
{
this.OnNombreAlumnoChanging(value);
this.SendPropertyChanging();
this._NombreAlumno = value;
this.SendPropertyChanged("NombreAlumno");
this.OnNombreAlumnoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CarreraID", DbType="Int NOT NULL")]
public int CarreraID
{
get
{
return this._CarreraID;
}
set
{
if ((this._CarreraID != value))
{
if (this._tblCarrera.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnCarreraIDChanging(value);
this.SendPropertyChanging();
this._CarreraID = value;
this.SendPropertyChanged("CarreraID");
this.OnCarreraIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblAlumno_tblCargasAlumno", Storage="_tblCargasAlumnos", ThisKey="AlumnoID", OtherKey="AlumnoID")]
public EntitySet<tblCargasAlumno> tblCargasAlumnos
{
get
{
return this._tblCargasAlumnos;
}
set
{
this._tblCargasAlumnos.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblCarrera_tblAlumno", Storage="_tblCarrera", ThisKey="CarreraID", OtherKey="CarreraID", IsForeignKey=true)]
public tblCarrera tblCarrera
{
get
{
return this._tblCarrera.Entity;
}
set
{
tblCarrera previousValue = this._tblCarrera.Entity;
if (((previousValue != value)
|| (this._tblCarrera.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._tblCarrera.Entity = null;
previousValue.tblAlumnos.Remove(this);
}
this._tblCarrera.Entity = value;
if ((value != null))
{
value.tblAlumnos.Add(this);
this._CarreraID = value.CarreraID;
}
else
{
this._CarreraID = default(int);
}
this.SendPropertyChanged("tblCarrera");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_tblCargasAlumnos(tblCargasAlumno entity)
{
this.SendPropertyChanging();
entity.tblAlumno = this;
}
private void detach_tblCargasAlumnos(tblCargasAlumno entity)
{
this.SendPropertyChanging();
entity.tblAlumno = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblUsuarios")]
public partial class tblUsuario : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _UsuarioID;
private string _NombreUsuario;
private string _Contraseña;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnUsuarioIDChanging(int value);
partial void OnUsuarioIDChanged();
partial void OnNombreUsuarioChanging(string value);
partial void OnNombreUsuarioChanged();
partial void OnContraseñaChanging(string value);
partial void OnContraseñaChanged();
#endregion
public tblUsuario()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsuarioID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int UsuarioID
{
get
{
return this._UsuarioID;
}
set
{
if ((this._UsuarioID != value))
{
this.OnUsuarioIDChanging(value);
this.SendPropertyChanging();
this._UsuarioID = value;
this.SendPropertyChanged("UsuarioID");
this.OnUsuarioIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NombreUsuario", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
public string NombreUsuario
{
get
{
return this._NombreUsuario;
}
set
{
if ((this._NombreUsuario != value))
{
this.OnNombreUsuarioChanging(value);
this.SendPropertyChanging();
this._NombreUsuario = value;
this.SendPropertyChanged("NombreUsuario");
this.OnNombreUsuarioChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contraseña", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
public string Contraseña
{
get
{
return this._Contraseña;
}
set
{
if ((this._Contraseña != value))
{
this.OnContraseñaChanging(value);
this.SendPropertyChanging();
this._Contraseña = value;
this.SendPropertyChanged("Contraseña");
this.OnContraseñaChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblCargasAlumnos")]
public partial class tblCargasAlumno : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _CargaID;
private int _AlumnoID;
private int _CarreraID;
private int _MateriaID;
private int _MaestroID;
private EntityRef<tblAlumno> _tblAlumno;
private EntityRef<tblCarrera> _tblCarrera;
private EntityRef<tblMaestro> _tblMaestro;
private EntityRef<tblMateria> _tblMateria;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnCargaIDChanging(int value);
partial void OnCargaIDChanged();
partial void OnAlumnoIDChanging(int value);
partial void OnAlumnoIDChanged();
partial void OnCarreraIDChanging(int value);
partial void OnCarreraIDChanged();
partial void OnMateriaIDChanging(int value);
partial void OnMateriaIDChanged();
partial void OnMaestroIDChanging(int value);
partial void OnMaestroIDChanged();
#endregion
public tblCargasAlumno()
{
this._tblAlumno = default(EntityRef<tblAlumno>);
this._tblCarrera = default(EntityRef<tblCarrera>);
this._tblMaestro = default(EntityRef<tblMaestro>);
this._tblMateria = default(EntityRef<tblMateria>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CargaID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int CargaID
{
get
{
return this._CargaID;
}
set
{
if ((this._CargaID != value))
{
this.OnCargaIDChanging(value);
this.SendPropertyChanging();
this._CargaID = value;
this.SendPropertyChanged("CargaID");
this.OnCargaIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AlumnoID", DbType="Int NOT NULL")]
public int AlumnoID
{
get
{
return this._AlumnoID;
}
set
{
if ((this._AlumnoID != value))
{
if (this._tblAlumno.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnAlumnoIDChanging(value);
this.SendPropertyChanging();
this._AlumnoID = value;
this.SendPropertyChanged("AlumnoID");
this.OnAlumnoIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CarreraID", DbType="Int NOT NULL")]
public int CarreraID
{
get
{
return this._CarreraID;
}
set
{
if ((this._CarreraID != value))
{
if (this._tblCarrera.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnCarreraIDChanging(value);
this.SendPropertyChanging();
this._CarreraID = value;
this.SendPropertyChanged("CarreraID");
this.OnCarreraIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MateriaID", DbType="Int NOT NULL")]
public int MateriaID
{
get
{
return this._MateriaID;
}
set
{
if ((this._MateriaID != value))
{
if (this._tblMateria.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnMateriaIDChanging(value);
this.SendPropertyChanging();
this._MateriaID = value;
this.SendPropertyChanged("MateriaID");
this.OnMateriaIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaestroID", DbType="Int NOT NULL")]
public int MaestroID
{
get
{
return this._MaestroID;
}
set
{
if ((this._MaestroID != value))
{
if (this._tblMaestro.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnMaestroIDChanging(value);
this.SendPropertyChanging();
this._MaestroID = value;
this.SendPropertyChanged("MaestroID");
this.OnMaestroIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblAlumno_tblCargasAlumno", Storage="_tblAlumno", ThisKey="AlumnoID", OtherKey="AlumnoID", IsForeignKey=true)]
public tblAlumno tblAlumno
{
get
{
return this._tblAlumno.Entity;
}
set
{
tblAlumno previousValue = this._tblAlumno.Entity;
if (((previousValue != value)
|| (this._tblAlumno.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._tblAlumno.Entity = null;
previousValue.tblCargasAlumnos.Remove(this);
}
this._tblAlumno.Entity = value;
if ((value != null))
{
value.tblCargasAlumnos.Add(this);
this._AlumnoID = value.AlumnoID;
}
else
{
this._AlumnoID = default(int);
}
this.SendPropertyChanged("tblAlumno");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblCarrera_tblCargasAlumno", Storage="_tblCarrera", ThisKey="CarreraID", OtherKey="CarreraID", IsForeignKey=true)]
public tblCarrera tblCarrera
{
get
{
return this._tblCarrera.Entity;
}
set
{
tblCarrera previousValue = this._tblCarrera.Entity;
if (((previousValue != value)
|| (this._tblCarrera.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._tblCarrera.Entity = null;
previousValue.tblCargasAlumnos.Remove(this);
}
this._tblCarrera.Entity = value;
if ((value != null))
{
value.tblCargasAlumnos.Add(this);
this._CarreraID = value.CarreraID;
}
else
{
this._CarreraID = default(int);
}
this.SendPropertyChanged("tblCarrera");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblMaestro_tblCargasAlumno", Storage="_tblMaestro", ThisKey="MaestroID", OtherKey="MaestroID", IsForeignKey=true)]
public tblMaestro tblMaestro
{
get
{
return this._tblMaestro.Entity;
}
set
{
tblMaestro previousValue = this._tblMaestro.Entity;