This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +35
-0
lines changed
src/ServiceStack.OrmLite.MySql.Tests Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ using NUnit . Framework ;
2
+ using ServiceStack . DataAnnotations ;
3
+ using ServiceStack . Text ;
4
+
5
+ namespace ServiceStack . OrmLite . MySql . Tests
6
+ {
7
+ public class Describe
8
+ {
9
+ [ Alias ( "Field" ) ]
10
+ public string Name { get ; set ; }
11
+ public string Type { get ; set ; }
12
+ public string Null { get ; set ; }
13
+ public string Key { get ; set ; }
14
+ public string Default { get ; set ; }
15
+ public string Extra { get ; set ; }
16
+ }
17
+
18
+ [ TestFixture ]
19
+ public class MySqlAdminTests : OrmLiteTestBase
20
+ {
21
+ [ Test ]
22
+ public void Can_describe_a_table ( )
23
+ {
24
+ using ( var db = OpenDbConnection ( ) )
25
+ {
26
+ db . DropAndCreateTable < Author > ( ) ;
27
+
28
+ var info = db . SqlList < Describe > ( "DESCRIBE author" ) ;
29
+
30
+ info . PrintDump ( ) ;
31
+ }
32
+ }
33
+ }
34
+ }
Original file line number Diff line number Diff line change 95
95
<Compile Include =" ForeignKeyAttributeTests.cs" />
96
96
<Compile Include =" Issues\SelectExpressionIssues.cs" />
97
97
<Compile Include =" LocalizationTests.cs" />
98
+ <Compile Include =" MySqlAdminTests.cs" />
98
99
<Compile Include =" StringColumnTests.cs" />
99
100
<Compile Include =" NorthwindPerfTests.cs" />
100
101
<Compile Include =" OrmLiteBasicPersistenceProviderTests.cs" />
You can’t perform that action at this time.
0 commit comments