ReSharper code reformat to match naming conventions and stuff
This commit is contained in:
parent
1147788154
commit
c6abbfe4d2
45 changed files with 11639 additions and 11342 deletions
|
|
@ -2,34 +2,35 @@
|
|||
|
||||
namespace TShockAPI.DB
|
||||
{
|
||||
public class SqlColumn
|
||||
{
|
||||
//Required
|
||||
public string Name { get; set; }
|
||||
public MySqlDbType Type { get; set; }
|
||||
public class SqlColumn
|
||||
{
|
||||
//Required
|
||||
public string Name { get; set; }
|
||||
public MySqlDbType Type { get; set; }
|
||||
|
||||
|
||||
//Optional
|
||||
public bool Unique { get; set; }
|
||||
public bool Primary { get; set; }
|
||||
public bool AutoIncrement { get; set; }
|
||||
public bool NotNull { get; set; }
|
||||
public string DefaultValue { get; set; }
|
||||
//Optional
|
||||
public bool Unique { get; set; }
|
||||
public bool Primary { get; set; }
|
||||
public bool AutoIncrement { get; set; }
|
||||
public bool NotNull { get; set; }
|
||||
public string DefaultValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Length of the data type, null = default
|
||||
/// </summary>
|
||||
public int? Length { get; set; }
|
||||
/// <summary>
|
||||
/// Length of the data type, null = default
|
||||
/// </summary>
|
||||
public int? Length { get; set; }
|
||||
|
||||
public SqlColumn(string name, MySqlDbType type)
|
||||
: this(name, type, null)
|
||||
{
|
||||
}
|
||||
public SqlColumn(string name, MySqlDbType type, int? length)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
Length = length;
|
||||
}
|
||||
}
|
||||
}
|
||||
public SqlColumn(string name, MySqlDbType type)
|
||||
: this(name, type, null)
|
||||
{
|
||||
}
|
||||
|
||||
public SqlColumn(string name, MySqlDbType type, int? length)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
Length = length;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue