-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathField.cs
More file actions
100 lines (88 loc) · 2.9 KB
/
Field.cs
File metadata and controls
100 lines (88 loc) · 2.9 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
//
// Copyright 2010 Thaddeus L Ryker
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Dynamics Nav is a registered trademark of the Microsoft Corporation
//
using System;
namespace Org.Edgerunner.Dynamics.Nav.CSide
{
/// <summary>
/// Represents a table field in a Dynamics Nav client instance.
/// </summary>
public struct Field
{
#region Data Members (13)
private string _Caption;
private int _ID;
private int _Length;
private string _Name;
private Table _Table;
private string _Type;
private int _Unknown;
/// <summary>
/// Gets the caption.
/// </summary>
/// <value>The caption.</value>
public string Caption { get { return _Caption; } }
/// <summary>
/// Gets the ID.
/// </summary>
/// <value>The ID.</value>
public int ID { get { return _ID; } }
/// <summary>
/// Gets the length.
/// </summary>
/// <value>The length.</value>
public int Length { get { return _Length; } }
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get { return _Name; } }
/// <summary>
/// Gets the type.
/// </summary>
/// <value>The type.</value>
public string Type { get { return _Type; } }
/// <summary>
/// The purpose of this value is currently unknown. Hopefully it can be discovered and documented later.
/// </summary>
/// <value>The unknown.</value>
public int Unknown { get { return _Unknown; } }
#endregion Data Members
#region Methods (1)
/// <summary>
/// Initializes a new instance of the Field structure.
/// </summary>
/// <param name="table"></param>
/// <param name="iD"></param>
/// <param name="name"></param>
/// <param name="caption"></param>
/// <param name="type"></param>
/// <param name="length"></param>
/// <param name="unknown"></param>
public Field(Table table, int iD, string name, string caption, string type, int length, int unknown)
{
_Table = table;
_ID = iD;
_Name = name;
_Caption = caption;
_Type = type;
_Length = length;
_Unknown = unknown;
}
#endregion Methods
}
}