Compare commits
	
		
			2 Commits
		
	
	
		
			a266aa5001
			...
			7866ef07d5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7866ef07d5 | |||
|   | df50e72359 | 
							
								
								
									
										38
									
								
								Inventory/TagAdapter.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								Inventory/TagAdapter.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | |||||||
|  | using Core.Blueprint.Mongo; | ||||||
|  | using MongoDB.Bson.Serialization.Attributes; | ||||||
|  | using System.Text.Json.Serialization; | ||||||
|  |  | ||||||
|  | namespace Core.Adapters.Lib | ||||||
|  | { | ||||||
|  |     [CollectionAttributeName("Tag")] | ||||||
|  |     public class TagAdapter : Document | ||||||
|  |     { | ||||||
|  |         [BsonElement("tenantId")] | ||||||
|  |         [JsonPropertyName("tenantId")] | ||||||
|  |         public string TenantId { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("tagName")] | ||||||
|  |         [JsonPropertyName("tagName")] | ||||||
|  |         public string TagName { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("typeId")] | ||||||
|  |         [JsonPropertyName("typeId")] | ||||||
|  |         public string TypeId { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("parentTagId")] | ||||||
|  |         [JsonPropertyName("parentTagId")] | ||||||
|  |         public string ParentTagId { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("slug")] | ||||||
|  |         [JsonPropertyName("slug")] | ||||||
|  |         public string Slug { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("displayOrder")] | ||||||
|  |         [JsonPropertyName("displayOrder")] | ||||||
|  |         public int DisplayOrder { get; set; } | ||||||
|  |  | ||||||
|  |         [BsonElement("icon")] | ||||||
|  |         [JsonPropertyName("icon")] | ||||||
|  |         public string Icon { get; set; } = null!; | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										22
									
								
								Inventory/TagOverrideAdapter.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Inventory/TagOverrideAdapter.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | |||||||
|  | using Core.Blueprint.Mongo; | ||||||
|  | using MongoDB.Bson.Serialization.Attributes; | ||||||
|  | using System.Text.Json.Serialization; | ||||||
|  |  | ||||||
|  | namespace Core.Adapters.Lib | ||||||
|  | { | ||||||
|  |     [CollectionAttributeName("TagOverride")] | ||||||
|  |     public class TagOverrideAdapter : Document | ||||||
|  |     { | ||||||
|  |         [BsonElement("tenantId")] | ||||||
|  |         [JsonPropertyName("tenantId")] | ||||||
|  |         public string TenantId { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("baseTagId")] | ||||||
|  |         [JsonPropertyName("baseTagId")] | ||||||
|  |         public string BaseTagId { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("overrideTagId")] | ||||||
|  |         [JsonPropertyName("overrideTagId")] | ||||||
|  |         public string OverrideTagId { get; set; } = null!; | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										26
									
								
								Inventory/TagTypeAdapter.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								Inventory/TagTypeAdapter.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | |||||||
|  | using Core.Blueprint.Mongo; | ||||||
|  | using MongoDB.Bson.Serialization.Attributes; | ||||||
|  | using System.Text.Json.Serialization; | ||||||
|  |  | ||||||
|  | namespace Core.Adapters.Lib | ||||||
|  | { | ||||||
|  |     [CollectionAttributeName("TagType")] | ||||||
|  |     public class TagTypeAdapter : Document | ||||||
|  |     { | ||||||
|  |         [BsonElement("tenantId")] | ||||||
|  |         [JsonPropertyName("tenantId")] | ||||||
|  |         public string TenantId { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("typeName")] | ||||||
|  |         [JsonPropertyName("typeName")] | ||||||
|  |         public string TypeName { get; set; } = null!; | ||||||
|  |  | ||||||
|  |         [BsonElement("level")] | ||||||
|  |         [JsonPropertyName("level")] | ||||||
|  |         public int Level { get; set; } | ||||||
|  |  | ||||||
|  |         [BsonElement("parentTypeId")] | ||||||
|  |         [JsonPropertyName("parentTypeId")] | ||||||
|  |         public string ParentTypeId { get; set; } = null!; | ||||||
|  |     } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user