Skip to content

Commit 974b8a6

Browse files
committed
Merge pull request #2020 from wing328/csharp_partial_model
[C#] add partial to C# model
2 parents 4819f37 + 295cf0b commit 974b8a6

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

modules/swagger-codegen/src/main/resources/csharp/model.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace {{packageName}}.Model
1717
/// {{description}}
1818
/// </summary>
1919
[DataContract]
20-
public class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
20+
public partial class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
2121
{
2222
/// <summary>
2323
/// Initializes a new instance of the <see cref="{{classname}}" /> class.

samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Category.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace IO.Swagger.Model
1515
///
1616
/// </summary>
1717
[DataContract]
18-
public class Category : IEquatable<Category>
18+
public partial class Category : IEquatable<Category>
1919
{
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="Category" /> class.

samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Order.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace IO.Swagger.Model
1515
///
1616
/// </summary>
1717
[DataContract]
18-
public class Order : IEquatable<Order>
18+
public partial class Order : IEquatable<Order>
1919
{
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="Order" /> class.

samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Pet.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace IO.Swagger.Model
1515
///
1616
/// </summary>
1717
[DataContract]
18-
public class Pet : IEquatable<Pet>
18+
public partial class Pet : IEquatable<Pet>
1919
{
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="Pet" /> class.

samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Tag.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace IO.Swagger.Model
1515
///
1616
/// </summary>
1717
[DataContract]
18-
public class Tag : IEquatable<Tag>
18+
public partial class Tag : IEquatable<Tag>
1919
{
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="Tag" /> class.

samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/User.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace IO.Swagger.Model
1515
///
1616
/// </summary>
1717
[DataContract]
18-
public class User : IEquatable<User>
18+
public partial class User : IEquatable<User>
1919
{
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="User" /> class.

samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.userprefs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<File FileName="TestPet.cs" Line="1" Column="1" />
66
<File FileName="TestConfiguration.cs" Line="1" Column="1" />
77
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs" Line="1" Column="1" />
8-
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs" Line="64" Column="50" />
8+
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs" Line="1" Column="1" />
99
<File FileName="TestApiClient.cs" Line="1" Column="1" />
1010
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/Configuration.cs" Line="1" Column="1" />
1111
</Files>

0 commit comments

Comments
 (0)