-
Notifications
You must be signed in to change notification settings - Fork 1
/
SqlType.cs
34 lines (32 loc) · 960 Bytes
/
SqlType.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
using System;
using System.Collections.Generic;
using System.Text;
namespace Albatross.Database {
/// <summary>
/// The class represents a database data type
/// </summary>
public class SqlType : IEquatable<SqlType> {
public string Schema { get; set; }
public string Name { get; set; }
public int? MaxLength { get; set; }
public int? Precision { get; set; }
public int? Scale { get; set; }
public bool IsNullable { get; set; }
public bool IsUserDefined { get; set; }
public bool IsTableType { get; set; }
public bool Equals(SqlType other) {
if (other != null) {
return Schema == other.Schema &&
Name == other.Name &&
MaxLength == other.MaxLength &&
Precision == other.Precision &&
Scale == other.Scale &&
IsNullable == other.IsNullable &&
IsUserDefined == other.IsUserDefined &&
IsTableType == other.IsTableType;
} else {
return false;
}
}
}
}