Merge pull request #4 from SergioMatias94/feature/fix-adapters
Remove _id from adapters
This commit is contained in:
		| @@ -18,15 +18,6 @@ namespace Core.Thalos.Adapters | ||||
|     [CollectionAttributeName("Modules")] | ||||
|     public class ModuleAdapter : Document | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the ID of the module. | ||||
|         /// </summary> | ||||
|         [BsonId] | ||||
|         [BsonElement("_id")] | ||||
|         [BsonRepresentation(BsonType.ObjectId)] | ||||
|         [JsonPropertyName("id")] | ||||
|         public string Id { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the name of the module. | ||||
|         /// </summary> | ||||
|   | ||||
| @@ -18,15 +18,6 @@ namespace Core.Thalos.Adapters | ||||
|     [CollectionAttributeName("Permissions")] | ||||
|     public class PermissionAdapter : Document | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the ID of the entity. | ||||
|         /// </summary> | ||||
|         [BsonId] | ||||
|         [BsonElement("_id")] | ||||
|         [BsonRepresentation(BsonType.ObjectId)] | ||||
|         [JsonPropertyName("id")] | ||||
|         public string Id { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the name of the entity. | ||||
|         /// </summary> | ||||
|   | ||||
| @@ -18,15 +18,6 @@ namespace Core.Thalos.Adapters | ||||
|     [CollectionAttributeName("Roles")] | ||||
|     public class RoleAdapter : Document | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the unique identifier of the role. | ||||
|         /// </summary> | ||||
|         [BsonId] | ||||
|         [BsonElement("_id")] | ||||
|         [BsonRepresentation(BsonType.ObjectId)] | ||||
|         [JsonPropertyName("id")] | ||||
|         public string Id { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the name of the role. | ||||
|         /// </summary> | ||||
|   | ||||
| @@ -16,15 +16,6 @@ namespace Core.Thalos.Adapters | ||||
|     [CollectionAttributeName("Users")] | ||||
|     public class UserAdapter : Document | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the unique identifier of the user. | ||||
|         /// </summary> | ||||
|         [BsonId] | ||||
|         [BsonElement("_id")] | ||||
|         [BsonRepresentation(BsonType.ObjectId)] | ||||
|         [JsonPropertyName("id")] | ||||
|         public string Id { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the guid of the user. | ||||
|         /// </summary> | ||||
|   | ||||
| @@ -8,11 +8,13 @@ | ||||
|     <TargetFramework>net8.0</TargetFramework> | ||||
|     <ImplicitUsings>enable</ImplicitUsings> | ||||
|     <Nullable>enable</Nullable> | ||||
| 	<VersionPrefix>1.0.2</VersionPrefix> | ||||
| 	<VersionSuffix>$(Date:yyyyMMddHHmm)</VersionSuffix> | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" /> | ||||
|     <PackageReference Include="Blueprint.Mongo" Version="0.0.3" /> | ||||
|     <PackageReference Include="Core.Blueprint.Mongo" Version="1.0.0" /> | ||||
|     <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10" /> | ||||
|     <PackageReference Include="Microsoft.Extensions.Configuration.AzureAppConfiguration" Version="8.2.0" /> | ||||
|     <PackageReference Include="Microsoft.Identity.Web" Version="3.9.1" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub