-
Notifications
You must be signed in to change notification settings - Fork 1
/
Flows.cs
72 lines (66 loc) · 2.23 KB
/
Flows.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq;
using System.Data.Linq.Mapping;
namespace PCMExceltoSQLDatabase
{
//Class used for collecting Excel Data and then for inputting it into LINQ Entity object which is inserted into Database. It is used since it has all static
//fields so it can be used in a global scope.
public class globalexcel2
{
public static string AccountIdentifierExcel, TypeExcel, SubTypeExcel;
public static int Id;
public static decimal AmountExcel;
public static DateTime? DateExcel;
}
[Table(Name = "Flows")]//Name of SQL Table this Object should be mapped to
class Flows
{
//Object properties that will be mapped to SQL Table Columns
private int _Id;
[Column(IsPrimaryKey = true, Storage = "_Id")]
public int Id
{
get { return this._Id; }
set { this._Id = value; }
}
private string _AccountIdentifier;
[Column(Storage = "_AccountIdentifier")]
public string AccountIdentifier
{
get { return this._AccountIdentifier; }
set { this._AccountIdentifier = value; }
}
private DateTime? _Date;
[Column(IsPrimaryKey = true, Storage = "_Date")]
public DateTime? Date
{
get { return this._Date; }
set { this._Date = value; }
}
private decimal _Amount;
[Column(Storage = "_Amount")]
public decimal Amount
{
get { return this._Amount; }
set { this._Amount = value; }
}
private string _Type;
[Column(Storage = "_Type")]
public string Type
{
get { return this._Type; }
set { this._Type = value; }
}
private string _SubType;
[Column(Storage = "_SubType")]
public string SubType
{
get { return this._SubType; }
set { this._SubType = value; }
}
}
}