Add project files.

This commit is contained in:
Ignacio Gomez 2025-06-21 23:45:31 -06:00
parent 9e355b699b
commit 6b82c73fc3
3 changed files with 67 additions and 0 deletions

13
Core.Adapters.Lib.csproj Normal file
View File

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Core.Blueprint.Mongo" Version="1.0.0" />
</ItemGroup>
</Project>

25
Core.Adapters.Lib.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36212.18 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Adapters.Lib", "Core.Adapters.Lib.csproj", "{AA3D06CA-C120-443B-8FC9-AE9098285271}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AA3D06CA-C120-443B-8FC9-AE9098285271}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA3D06CA-C120-443B-8FC9-AE9098285271}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA3D06CA-C120-443B-8FC9-AE9098285271}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA3D06CA-C120-443B-8FC9-AE9098285271}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {00C9247B-BA90-4F25-923A-03A1843C74CC}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,29 @@
using Core.Blueprint.Mongo;
using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization;
namespace Core.Adapters.Lib.Inventory.Base
{
[CollectionAttributeName("Inventory")]
public class InventoryItem : Document
{
[BsonElement("name")]
[JsonPropertyName("name")]
public string Name { get; set; }
[BsonElement("description")]
[JsonPropertyName("description")]
public string Description { get; set; }
[BsonElement("stock")]
[JsonPropertyName("stock")]
public int Stock { get; set; }
[BsonElement("representation")]
[JsonPropertyName("representation")]
public string Representation { get; set; }
public string Company { get; set; }
}
}