forked from Abhivendra/School-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SMS.designer.vb
1795 lines (1605 loc) · 50.2 KB
/
SMS.designer.vb
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
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.34014
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.Linq
Imports System.Data.Linq.Mapping
Imports System.Linq
Imports System.Linq.Expressions
Imports System.Reflection
<Global.System.Data.Linq.Mapping.DatabaseAttribute(Name:="SMS")> _
Partial Public Class SMSDataContext
Inherits System.Data.Linq.DataContext
Private Shared mappingSource As System.Data.Linq.Mapping.MappingSource = New AttributeMappingSource()
#Region "Extensibility Method Definitions"
Partial Private Sub OnCreated()
End Sub
Partial Private Sub InsertStudent(instance As Student)
End Sub
Partial Private Sub UpdateStudent(instance As Student)
End Sub
Partial Private Sub DeleteStudent(instance As Student)
End Sub
Partial Private Sub Insertfee(instance As fee)
End Sub
Partial Private Sub Updatefee(instance As fee)
End Sub
Partial Private Sub Deletefee(instance As fee)
End Sub
Partial Private Sub InsertTeacher(instance As Teacher)
End Sub
Partial Private Sub UpdateTeacher(instance As Teacher)
End Sub
Partial Private Sub DeleteTeacher(instance As Teacher)
End Sub
Partial Private Sub InsertUser(instance As User)
End Sub
Partial Private Sub UpdateUser(instance As User)
End Sub
Partial Private Sub DeleteUser(instance As User)
End Sub
Partial Private Sub InsertAssessment(instance As Assessment)
End Sub
Partial Private Sub UpdateAssessment(instance As Assessment)
End Sub
Partial Private Sub DeleteAssessment(instance As Assessment)
End Sub
#End Region
Public Sub New()
MyBase.New(Global.School_Management_System.My.MySettings.Default.SMSConnectionString, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As String)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As System.Data.IDbConnection)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As String, ByVal mappingSource As System.Data.Linq.Mapping.MappingSource)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public Sub New(ByVal connection As System.Data.IDbConnection, ByVal mappingSource As System.Data.Linq.Mapping.MappingSource)
MyBase.New(connection, mappingSource)
OnCreated
End Sub
Public ReadOnly Property Students() As System.Data.Linq.Table(Of Student)
Get
Return Me.GetTable(Of Student)
End Get
End Property
Public ReadOnly Property fees() As System.Data.Linq.Table(Of fee)
Get
Return Me.GetTable(Of fee)
End Get
End Property
Public ReadOnly Property Teachers() As System.Data.Linq.Table(Of Teacher)
Get
Return Me.GetTable(Of Teacher)
End Get
End Property
Public ReadOnly Property Users() As System.Data.Linq.Table(Of User)
Get
Return Me.GetTable(Of User)
End Get
End Property
Public ReadOnly Property Assessments() As System.Data.Linq.Table(Of Assessment)
Get
Return Me.GetTable(Of Assessment)
End Get
End Property
End Class
<Global.System.Data.Linq.Mapping.TableAttribute(Name:="dbo.Students")> _
Partial Public Class Student
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _StudentID As Integer
Private _Registration_No As String
Private _Full_Name As String
Private _Gender As String
Private _Age As System.Nullable(Of Integer)
Private _Ressedential_Address As String
Private _Permanent_Address As String
Private _Contact_No As String
Private _Email_ID As String
Private _Class As String
Private _Stream As String
Private _Picture As String
Private _Registration_Date As System.Nullable(Of Date)
Private _Blood_Group As String
Private _Mother_name As String
Private _mother_occ As String
Private _mother_contact As String
Private _mother_salary As System.Nullable(Of Double)
Private _father_name As String
Private _father_occ As String
Private _father_contact As String
Private _father_salary As System.Nullable(Of Double)
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnStudentIDChanging(value As Integer)
End Sub
Partial Private Sub OnStudentIDChanged()
End Sub
Partial Private Sub OnRegistration_NoChanging(value As String)
End Sub
Partial Private Sub OnRegistration_NoChanged()
End Sub
Partial Private Sub OnFull_NameChanging(value As String)
End Sub
Partial Private Sub OnFull_NameChanged()
End Sub
Partial Private Sub OnGenderChanging(value As String)
End Sub
Partial Private Sub OnGenderChanged()
End Sub
Partial Private Sub OnAgeChanging(value As System.Nullable(Of Integer))
End Sub
Partial Private Sub OnAgeChanged()
End Sub
Partial Private Sub OnRessedential_AddressChanging(value As String)
End Sub
Partial Private Sub OnRessedential_AddressChanged()
End Sub
Partial Private Sub OnPermanent_AddressChanging(value As String)
End Sub
Partial Private Sub OnPermanent_AddressChanged()
End Sub
Partial Private Sub OnContact_NoChanging(value As String)
End Sub
Partial Private Sub OnContact_NoChanged()
End Sub
Partial Private Sub OnEmail_IDChanging(value As String)
End Sub
Partial Private Sub OnEmail_IDChanged()
End Sub
Partial Private Sub OnClassChanging(value As String)
End Sub
Partial Private Sub OnClassChanged()
End Sub
Partial Private Sub OnStreamChanging(value As String)
End Sub
Partial Private Sub OnStreamChanged()
End Sub
Partial Private Sub OnPictureChanging(value As String)
End Sub
Partial Private Sub OnPictureChanged()
End Sub
Partial Private Sub OnRegistration_DateChanging(value As System.Nullable(Of Date))
End Sub
Partial Private Sub OnRegistration_DateChanged()
End Sub
Partial Private Sub OnBlood_GroupChanging(value As String)
End Sub
Partial Private Sub OnBlood_GroupChanged()
End Sub
Partial Private Sub OnMother_nameChanging(value As String)
End Sub
Partial Private Sub OnMother_nameChanged()
End Sub
Partial Private Sub Onmother_occChanging(value As String)
End Sub
Partial Private Sub Onmother_occChanged()
End Sub
Partial Private Sub Onmother_contactChanging(value As String)
End Sub
Partial Private Sub Onmother_contactChanged()
End Sub
Partial Private Sub Onmother_salaryChanging(value As System.Nullable(Of Double))
End Sub
Partial Private Sub Onmother_salaryChanged()
End Sub
Partial Private Sub Onfather_nameChanging(value As String)
End Sub
Partial Private Sub Onfather_nameChanged()
End Sub
Partial Private Sub Onfather_occChanging(value As String)
End Sub
Partial Private Sub Onfather_occChanged()
End Sub
Partial Private Sub Onfather_contactChanging(value As String)
End Sub
Partial Private Sub Onfather_contactChanged()
End Sub
Partial Private Sub Onfather_salaryChanging(value As System.Nullable(Of Double))
End Sub
Partial Private Sub Onfather_salaryChanged()
End Sub
#End Region
Public Sub New()
MyBase.New
OnCreated
End Sub
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_StudentID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)> _
Public Property StudentID() As Integer
Get
Return Me._StudentID
End Get
Set
If ((Me._StudentID = value) _
= false) Then
Me.OnStudentIDChanging(value)
Me.SendPropertyChanging
Me._StudentID = value
Me.SendPropertyChanged("StudentID")
Me.OnStudentIDChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Registration No]", Storage:="_Registration_No", DbType:="NVarChar(50) NOT NULL", CanBeNull:=false)> _
Public Property Registration_No() As String
Get
Return Me._Registration_No
End Get
Set
If (String.Equals(Me._Registration_No, value) = false) Then
Me.OnRegistration_NoChanging(value)
Me.SendPropertyChanging
Me._Registration_No = value
Me.SendPropertyChanged("Registration_No")
Me.OnRegistration_NoChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Full Name]", Storage:="_Full_Name", DbType:="NVarChar(100) NOT NULL", CanBeNull:=false)> _
Public Property Full_Name() As String
Get
Return Me._Full_Name
End Get
Set
If (String.Equals(Me._Full_Name, value) = false) Then
Me.OnFull_NameChanging(value)
Me.SendPropertyChanging
Me._Full_Name = value
Me.SendPropertyChanged("Full_Name")
Me.OnFull_NameChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Gender", DbType:="NVarChar(50)")> _
Public Property Gender() As String
Get
Return Me._Gender
End Get
Set
If (String.Equals(Me._Gender, value) = false) Then
Me.OnGenderChanging(value)
Me.SendPropertyChanging
Me._Gender = value
Me.SendPropertyChanged("Gender")
Me.OnGenderChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Age", DbType:="Int")> _
Public Property Age() As System.Nullable(Of Integer)
Get
Return Me._Age
End Get
Set
If (Me._Age.Equals(value) = false) Then
Me.OnAgeChanging(value)
Me.SendPropertyChanging
Me._Age = value
Me.SendPropertyChanged("Age")
Me.OnAgeChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Ressedential Address]", Storage:="_Ressedential_Address", DbType:="NVarChar(MAX) NOT NULL", CanBeNull:=false)> _
Public Property Ressedential_Address() As String
Get
Return Me._Ressedential_Address
End Get
Set
If (String.Equals(Me._Ressedential_Address, value) = false) Then
Me.OnRessedential_AddressChanging(value)
Me.SendPropertyChanging
Me._Ressedential_Address = value
Me.SendPropertyChanged("Ressedential_Address")
Me.OnRessedential_AddressChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Permanent Address]", Storage:="_Permanent_Address", DbType:="NVarChar(MAX)")> _
Public Property Permanent_Address() As String
Get
Return Me._Permanent_Address
End Get
Set
If (String.Equals(Me._Permanent_Address, value) = false) Then
Me.OnPermanent_AddressChanging(value)
Me.SendPropertyChanging
Me._Permanent_Address = value
Me.SendPropertyChanged("Permanent_Address")
Me.OnPermanent_AddressChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Contact No]", Storage:="_Contact_No", DbType:="NVarChar(50)")> _
Public Property Contact_No() As String
Get
Return Me._Contact_No
End Get
Set
If (String.Equals(Me._Contact_No, value) = false) Then
Me.OnContact_NoChanging(value)
Me.SendPropertyChanging
Me._Contact_No = value
Me.SendPropertyChanged("Contact_No")
Me.OnContact_NoChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Email ID]", Storage:="_Email_ID", DbType:="NVarChar(300)")> _
Public Property Email_ID() As String
Get
Return Me._Email_ID
End Get
Set
If (String.Equals(Me._Email_ID, value) = false) Then
Me.OnEmail_IDChanging(value)
Me.SendPropertyChanging
Me._Email_ID = value
Me.SendPropertyChanged("Email_ID")
Me.OnEmail_IDChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="Class", Storage:="_Class", DbType:="NVarChar(50)")> _
Public Property [Class]() As String
Get
Return Me._Class
End Get
Set
If (String.Equals(Me._Class, value) = false) Then
Me.OnClassChanging(value)
Me.SendPropertyChanging
Me._Class = value
Me.SendPropertyChanged("[Class]")
Me.OnClassChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Stream", DbType:="NVarChar(50)")> _
Public Property Stream() As String
Get
Return Me._Stream
End Get
Set
If (String.Equals(Me._Stream, value) = false) Then
Me.OnStreamChanging(value)
Me.SendPropertyChanging
Me._Stream = value
Me.SendPropertyChanged("Stream")
Me.OnStreamChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Picture", DbType:="NVarChar(500)")> _
Public Property Picture() As String
Get
Return Me._Picture
End Get
Set
If (String.Equals(Me._Picture, value) = false) Then
Me.OnPictureChanging(value)
Me.SendPropertyChanging
Me._Picture = value
Me.SendPropertyChanged("Picture")
Me.OnPictureChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Registration Date]", Storage:="_Registration_Date", DbType:="Date")> _
Public Property Registration_Date() As System.Nullable(Of Date)
Get
Return Me._Registration_Date
End Get
Set
If (Me._Registration_Date.Equals(value) = false) Then
Me.OnRegistration_DateChanging(value)
Me.SendPropertyChanging
Me._Registration_Date = value
Me.SendPropertyChanged("Registration_Date")
Me.OnRegistration_DateChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Blood Group]", Storage:="_Blood_Group", DbType:="NVarChar(50)")> _
Public Property Blood_Group() As String
Get
Return Me._Blood_Group
End Get
Set
If (String.Equals(Me._Blood_Group, value) = false) Then
Me.OnBlood_GroupChanging(value)
Me.SendPropertyChanging
Me._Blood_Group = value
Me.SendPropertyChanged("Blood_Group")
Me.OnBlood_GroupChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Mother name]", Storage:="_Mother_name", DbType:="NVarChar(500)")> _
Public Property Mother_name() As String
Get
Return Me._Mother_name
End Get
Set
If (String.Equals(Me._Mother_name, value) = false) Then
Me.OnMother_nameChanging(value)
Me.SendPropertyChanging
Me._Mother_name = value
Me.SendPropertyChanged("Mother_name")
Me.OnMother_nameChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[mother occ]", Storage:="_mother_occ", DbType:="NVarChar(50)")> _
Public Property mother_occ() As String
Get
Return Me._mother_occ
End Get
Set
If (String.Equals(Me._mother_occ, value) = false) Then
Me.Onmother_occChanging(value)
Me.SendPropertyChanging
Me._mother_occ = value
Me.SendPropertyChanged("mother_occ")
Me.Onmother_occChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[mother contact]", Storage:="_mother_contact", DbType:="NVarChar(50)")> _
Public Property mother_contact() As String
Get
Return Me._mother_contact
End Get
Set
If (String.Equals(Me._mother_contact, value) = false) Then
Me.Onmother_contactChanging(value)
Me.SendPropertyChanging
Me._mother_contact = value
Me.SendPropertyChanged("mother_contact")
Me.Onmother_contactChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[mother salary]", Storage:="_mother_salary", DbType:="Float")> _
Public Property mother_salary() As System.Nullable(Of Double)
Get
Return Me._mother_salary
End Get
Set
If (Me._mother_salary.Equals(value) = false) Then
Me.Onmother_salaryChanging(value)
Me.SendPropertyChanging
Me._mother_salary = value
Me.SendPropertyChanged("mother_salary")
Me.Onmother_salaryChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[father name]", Storage:="_father_name", DbType:="NVarChar(500)")> _
Public Property father_name() As String
Get
Return Me._father_name
End Get
Set
If (String.Equals(Me._father_name, value) = false) Then
Me.Onfather_nameChanging(value)
Me.SendPropertyChanging
Me._father_name = value
Me.SendPropertyChanged("father_name")
Me.Onfather_nameChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[father occ]", Storage:="_father_occ", DbType:="NVarChar(50)")> _
Public Property father_occ() As String
Get
Return Me._father_occ
End Get
Set
If (String.Equals(Me._father_occ, value) = false) Then
Me.Onfather_occChanging(value)
Me.SendPropertyChanging
Me._father_occ = value
Me.SendPropertyChanged("father_occ")
Me.Onfather_occChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[father contact]", Storage:="_father_contact", DbType:="NVarChar(50)")> _
Public Property father_contact() As String
Get
Return Me._father_contact
End Get
Set
If (String.Equals(Me._father_contact, value) = false) Then
Me.Onfather_contactChanging(value)
Me.SendPropertyChanging
Me._father_contact = value
Me.SendPropertyChanged("father_contact")
Me.Onfather_contactChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[father salary]", Storage:="_father_salary", DbType:="Float")> _
Public Property father_salary() As System.Nullable(Of Double)
Get
Return Me._father_salary
End Get
Set
If (Me._father_salary.Equals(value) = false) Then
Me.Onfather_salaryChanging(value)
Me.SendPropertyChanging
Me._father_salary = value
Me.SendPropertyChanged("father_salary")
Me.Onfather_salaryChanged
End If
End Set
End Property
Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Protected Overridable Sub SendPropertyChanging()
If ((Me.PropertyChangingEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
End If
End Sub
Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
If ((Me.PropertyChangedEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
End If
End Sub
End Class
<Global.System.Data.Linq.Mapping.TableAttribute(Name:="dbo.fees")> _
Partial Public Class fee
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _ID As Integer
Private _Registration_No As String
Private _Full_Name As String
Private _Class As String
Private _Fee As System.Nullable(Of Decimal)
Private _Fee_paid As System.Nullable(Of Decimal)
Private _Balance As System.Nullable(Of Decimal)
Private _Status As String
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnIDChanging(value As Integer)
End Sub
Partial Private Sub OnIDChanged()
End Sub
Partial Private Sub OnRegistration_NoChanging(value As String)
End Sub
Partial Private Sub OnRegistration_NoChanged()
End Sub
Partial Private Sub OnFull_NameChanging(value As String)
End Sub
Partial Private Sub OnFull_NameChanged()
End Sub
Partial Private Sub OnClassChanging(value As String)
End Sub
Partial Private Sub OnClassChanged()
End Sub
Partial Private Sub OnFeeChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnFeeChanged()
End Sub
Partial Private Sub OnFee_paidChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnFee_paidChanged()
End Sub
Partial Private Sub OnBalanceChanging(value As System.Nullable(Of Decimal))
End Sub
Partial Private Sub OnBalanceChanged()
End Sub
Partial Private Sub OnStatusChanging(value As String)
End Sub
Partial Private Sub OnStatusChanged()
End Sub
#End Region
Public Sub New()
MyBase.New
OnCreated
End Sub
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_ID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)> _
Public Property ID() As Integer
Get
Return Me._ID
End Get
Set
If ((Me._ID = value) _
= false) Then
Me.OnIDChanging(value)
Me.SendPropertyChanging
Me._ID = value
Me.SendPropertyChanged("ID")
Me.OnIDChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Registration No]", Storage:="_Registration_No", DbType:="NVarChar(50)")> _
Public Property Registration_No() As String
Get
Return Me._Registration_No
End Get
Set
If (String.Equals(Me._Registration_No, value) = false) Then
Me.OnRegistration_NoChanging(value)
Me.SendPropertyChanging
Me._Registration_No = value
Me.SendPropertyChanged("Registration_No")
Me.OnRegistration_NoChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[Full Name]", Storage:="_Full_Name", DbType:="NVarChar(100)")> _
Public Property Full_Name() As String
Get
Return Me._Full_Name
End Get
Set
If (String.Equals(Me._Full_Name, value) = false) Then
Me.OnFull_NameChanging(value)
Me.SendPropertyChanging
Me._Full_Name = value
Me.SendPropertyChanged("Full_Name")
Me.OnFull_NameChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="Class", Storage:="_Class", DbType:="NVarChar(50)")> _
Public Property [Class]() As String
Get
Return Me._Class
End Get
Set
If (String.Equals(Me._Class, value) = false) Then
Me.OnClassChanging(value)
Me.SendPropertyChanging
Me._Class = value
Me.SendPropertyChanged("[Class]")
Me.OnClassChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Fee", DbType:="Decimal(18,2)")> _
Public Property Fee() As System.Nullable(Of Decimal)
Get
Return Me._Fee
End Get
Set
If (Me._Fee.Equals(value) = false) Then
Me.OnFeeChanging(value)
Me.SendPropertyChanging
Me._Fee = value
Me.SendPropertyChanged("Fee")
Me.OnFeeChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Fee_paid", DbType:="Decimal(18,2)")> _
Public Property Fee_paid() As System.Nullable(Of Decimal)
Get
Return Me._Fee_paid
End Get
Set
If (Me._Fee_paid.Equals(value) = false) Then
Me.OnFee_paidChanging(value)
Me.SendPropertyChanging
Me._Fee_paid = value
Me.SendPropertyChanged("Fee_paid")
Me.OnFee_paidChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Balance", DbType:="Decimal(18,2)")> _
Public Property Balance() As System.Nullable(Of Decimal)
Get
Return Me._Balance
End Get
Set
If (Me._Balance.Equals(value) = false) Then
Me.OnBalanceChanging(value)
Me.SendPropertyChanging
Me._Balance = value
Me.SendPropertyChanged("Balance")
Me.OnBalanceChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_Status", DbType:="NVarChar(50)")> _
Public Property Status() As String
Get
Return Me._Status
End Get
Set
If (String.Equals(Me._Status, value) = false) Then
Me.OnStatusChanging(value)
Me.SendPropertyChanging
Me._Status = value
Me.SendPropertyChanged("Status")
Me.OnStatusChanged
End If
End Set
End Property
Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Protected Overridable Sub SendPropertyChanging()
If ((Me.PropertyChangingEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
End If
End Sub
Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
If ((Me.PropertyChangedEvent Is Nothing) _
= false) Then
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
End If
End Sub
End Class
<Global.System.Data.Linq.Mapping.TableAttribute(Name:="dbo.Teachers")> _
Partial Public Class Teacher
Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
Private _id As Integer
Private _staff_id As String
Private _full_name As String
Private _gender As String
Private _age As System.Nullable(Of Integer)
Private _desingnation As String
Private _Picture As String
Private _Address As String
Private _Contact_No As String
Private _email_ID As String
#Region "Extensibility Method Definitions"
Partial Private Sub OnLoaded()
End Sub
Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
End Sub
Partial Private Sub OnCreated()
End Sub
Partial Private Sub OnidChanging(value As Integer)
End Sub
Partial Private Sub OnidChanged()
End Sub
Partial Private Sub Onstaff_idChanging(value As String)
End Sub
Partial Private Sub Onstaff_idChanged()
End Sub
Partial Private Sub Onfull_nameChanging(value As String)
End Sub
Partial Private Sub Onfull_nameChanged()
End Sub
Partial Private Sub OngenderChanging(value As String)
End Sub
Partial Private Sub OngenderChanged()
End Sub
Partial Private Sub OnageChanging(value As System.Nullable(Of Integer))
End Sub
Partial Private Sub OnageChanged()
End Sub
Partial Private Sub OndesingnationChanging(value As String)
End Sub
Partial Private Sub OndesingnationChanged()
End Sub
Partial Private Sub OnPictureChanging(value As String)
End Sub
Partial Private Sub OnPictureChanged()
End Sub
Partial Private Sub OnAddressChanging(value As String)
End Sub
Partial Private Sub OnAddressChanged()
End Sub
Partial Private Sub OnContact_NoChanging(value As String)
End Sub
Partial Private Sub OnContact_NoChanged()
End Sub
Partial Private Sub Onemail_IDChanging(value As String)
End Sub
Partial Private Sub Onemail_IDChanged()
End Sub
#End Region
Public Sub New()
MyBase.New
OnCreated
End Sub
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_id", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)> _
Public Property id() As Integer
Get
Return Me._id
End Get
Set
If ((Me._id = value) _
= false) Then
Me.OnidChanging(value)
Me.SendPropertyChanging
Me._id = value
Me.SendPropertyChanged("id")
Me.OnidChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[staff id]", Storage:="_staff_id", DbType:="NVarChar(50)")> _
Public Property staff_id() As String
Get
Return Me._staff_id
End Get
Set
If (String.Equals(Me._staff_id, value) = false) Then
Me.Onstaff_idChanging(value)
Me.SendPropertyChanging
Me._staff_id = value
Me.SendPropertyChanged("staff_id")
Me.Onstaff_idChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Name:="[full name]", Storage:="_full_name", DbType:="NVarChar(100)")> _
Public Property full_name() As String
Get
Return Me._full_name
End Get
Set
If (String.Equals(Me._full_name, value) = false) Then
Me.Onfull_nameChanging(value)
Me.SendPropertyChanging
Me._full_name = value
Me.SendPropertyChanged("full_name")
Me.Onfull_nameChanged
End If
End Set
End Property
<Global.System.Data.Linq.Mapping.ColumnAttribute(Storage:="_gender", DbType:="NVarChar(50)")> _
Public Property gender() As String
Get
Return Me._gender
End Get
Set
If (String.Equals(Me._gender, value) = false) Then
Me.OngenderChanging(value)
Me.SendPropertyChanging
Me._gender = value