Add project files.
This commit is contained in:
		| @@ -0,0 +1,18 @@ | ||||
| namespace Core.Blueprint.Domain.Contexts.SQLServer.BaseConfig | ||||
| { | ||||
|     public abstract class BaseSQLEntity | ||||
|     { | ||||
|         public Guid Id { get; set; } = Guid.NewGuid(); | ||||
|  | ||||
|         public Guid TransactionalId { get; private set; } | ||||
|         public DateTime Created = DateTime.Now; | ||||
|         public DateTime Update { get; private set; } | ||||
|  | ||||
|  | ||||
|         public void IsUpdate() | ||||
|         { | ||||
|             TransactionalId = Guid.NewGuid(); | ||||
|             Update = DateTime.Now; | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										20
									
								
								Core.Blueprint.Domain/Core.Blueprint.Domain.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Core.Blueprint.Domain/Core.Blueprint.Domain.csproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
|  | ||||
|   <PropertyGroup> | ||||
|     <TargetFramework>net8.0</TargetFramework> | ||||
|     <ImplicitUsings>enable</ImplicitUsings> | ||||
|     <Nullable>enable</Nullable> | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <PackageReference Include="MongoDB.Bson" Version="3.0.0" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <Folder Include="Contexts\Mongo\" /> | ||||
|     <Folder Include="Contexts\KeyVault\" /> | ||||
|     <Folder Include="Contexts\Storage\" /> | ||||
|     <Folder Include="Contexts\Redis\" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
| </Project> | ||||
							
								
								
									
										7
									
								
								Core.Blueprint.Domain/Dtos/ImageUrlDto.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Core.Blueprint.Domain/Dtos/ImageUrlDto.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| namespace Core.Blueprint.Domain.Dtos | ||||
| { | ||||
|     public class ImageUrlDto | ||||
|     { | ||||
|         public Uri Url { get; set; } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										14
									
								
								Core.Blueprint.Domain/Dtos/KeyVaultSecretDto.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Core.Blueprint.Domain/Dtos/KeyVaultSecretDto.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Core.Blueprint.Domain.Dtos | ||||
| { | ||||
|     public class KeyVaultSecretDto | ||||
|     { | ||||
|         public string Key { get; set; } | ||||
|         public string Value { get; set; } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										14
									
								
								Core.Blueprint.Domain/Entities/AbsEntity.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Core.Blueprint.Domain/Entities/AbsEntity.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| using MongoDB.Bson.Serialization.Attributes; | ||||
| using MongoDB.Bson; | ||||
|  | ||||
| namespace Core.Blueprint.Domain.Entities | ||||
| { | ||||
|     public abstract class AbsEntity | ||||
|     { | ||||
|         [BsonId] | ||||
|         [BsonRepresentation(BsonType.ObjectId)] | ||||
|         [BsonElement("_id")] | ||||
|         public string? Id { get; set; } | ||||
|         public char StatusCode { get; set; } = 'P'; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										7
									
								
								Core.Blueprint.Domain/Entities/AbsFileEntity.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Core.Blueprint.Domain/Entities/AbsFileEntity.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| namespace Core.Blueprint.Domain.Entities | ||||
| { | ||||
|     public abstract class AbsFileEntity : AbsEntity | ||||
|     { | ||||
|         public byte[] FileContent { get; set; } = []; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										15
									
								
								Core.Blueprint.Domain/Entities/BlueprintCollection.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Core.Blueprint.Domain/Entities/BlueprintCollection.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| using Core.Blueprint.Domain.Shared; | ||||
| using MongoDB.Bson; | ||||
| using MongoDB.Bson.Serialization.Attributes; | ||||
|  | ||||
| namespace Core.Blueprint.Domain.Entities | ||||
| { | ||||
|     [CollectionAttributeName("blueprint")] | ||||
|     public class BlueprintCollection : AbsEntity | ||||
|     { | ||||
|         public Guid CorrelationId { get; set; } | ||||
|  | ||||
|         public DateTime Created { get; set; } | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										7
									
								
								Core.Blueprint.Domain/Entities/SampleImage.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Core.Blueprint.Domain/Entities/SampleImage.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| namespace Core.Blueprint.Domain.Entities | ||||
| { | ||||
|     public class SampleImage : AbsFileEntity | ||||
|     { | ||||
|          | ||||
|     } | ||||
| } | ||||
							
								
								
									
										17
									
								
								Core.Blueprint.Domain/Entities/SampleItem.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Core.Blueprint.Domain/Entities/SampleItem.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
|  | ||||
| namespace Core.Blueprint.Domain.Entities | ||||
| { | ||||
|     [Table("Blueprint_Test01")]  | ||||
|     public class SampleItem : AbsEntity | ||||
|     { | ||||
|         public Guid Id { get; set; } = Guid.NewGuid(); | ||||
|         public string TestName { get; set; } = string.Empty; | ||||
|         public char StatusCode { get; set; } = 'P'; | ||||
|         public int NumValue { get; set; } = 0; | ||||
|         public DateTime CreatedAt { get; set; } = DateTime.Now; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
| //User - Project | ||||
							
								
								
									
										13
									
								
								Core.Blueprint.Domain/Entities/Secret.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Core.Blueprint.Domain/Entities/Secret.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Core.Blueprint.Domain.Entities | ||||
| { | ||||
|     public class Secret | ||||
|     { | ||||
|         public string? Value { get; set; } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										12
									
								
								Core.Blueprint.Domain/Shared/CollectionAttributeName.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								Core.Blueprint.Domain/Shared/CollectionAttributeName.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| namespace Core.Blueprint.Domain.Shared | ||||
| { | ||||
|     [AttributeUsage(AttributeTargets.Class)] | ||||
|     public class CollectionAttributeName : Attribute | ||||
|     { | ||||
|         public string Name { get; set; } | ||||
|         public CollectionAttributeName(string name) | ||||
|         { | ||||
|             Name = name; | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin