Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d98b969

Browse files
committed
Rename enums to use PascalCase
1 parent facd4f2 commit d98b969

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ServiceStack.OrmLite.SqlServer/SqlServer2014OrmLiteDialectProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public override string ToCreateTableStatement(Type tableType)
5858
{
5959
sbMemOptimized.Append(" WITH (MEMORY_OPTIMIZED=ON");
6060
var attrib = tableType.FirstAttribute<MemoryOptimizedAttribute>();
61-
if (attrib.Durability == TableDurability.SCHEMA_ONLY)
61+
if (attrib.Durability == TableDurability.SchemaOnly)
6262
sbMemOptimized.Append(", DURABILITY=SCHEMA_ONLY");
63-
else if (attrib.Durability == TableDurability.SCHEMA_AND_DATA)
63+
else if (attrib.Durability == TableDurability.SchemaAndData)
6464
sbMemOptimized.Append(", DURABILITY=SCHEMA_AND_DATA");
6565
sbMemOptimized.Append(")");
6666
}
@@ -88,7 +88,7 @@ public MemoryOptimizedAttribute() { }
8888

8989
public enum TableDurability
9090
{
91-
SCHEMA_ONLY, // (non-durable table) recreated upon server restart, data is lost, no transaction logging and checkpoints
92-
SCHEMA_AND_DATA // (durable table) data persists upon server restart
91+
SchemaOnly, // (non-durable table) recreated upon server restart, data is lost, no transaction logging and checkpoints
92+
SchemaAndData // (durable table) data persists upon server restart
9393
}
9494
}

src/ServiceStack.OrmLite.SqlServerTests/MemoryOptimizedAttributeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class TypeWithMemTableNoDurability
5656
public string Name { get; set; }
5757
}
5858

59-
[MemoryOptimized(TableDurability.SCHEMA_ONLY)]
59+
[MemoryOptimized(TableDurability.SchemaOnly)]
6060
public class TypeWithMemTableSchemaOnlyDurability
6161
{
6262
[AutoIncrement]
@@ -65,7 +65,7 @@ public class TypeWithMemTableSchemaOnlyDurability
6565
public string Name { get; set; }
6666
}
6767

68-
[MemoryOptimized(TableDurability.SCHEMA_AND_DATA)]
68+
[MemoryOptimized(TableDurability.SchemaAndData)]
6969
public class TypeWithMemTableSchemaAndDataDurability
7070
{
7171
[AutoIncrement]

0 commit comments

Comments
 (0)