mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add Data and Models projects
This commit is contained in:
parent
aacc6ac990
commit
2a2c8ad285
6 changed files with 65 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
|
||||
gs/Private.gs
|
||||
api/FilterLists.API/appsettings.json
|
||||
|
|
|
|||
15
api/FilterLists.Data/FilterLists.Data.csproj
Normal file
15
api/FilterLists.Data/FilterLists.Data.csproj
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="7.0.7-m61" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\FilterLists.Models\FilterLists.Models.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
6
api/FilterLists.Data/ListRepository.cs
Normal file
6
api/FilterLists.Data/ListRepository.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace FilterLists.Data
|
||||
{
|
||||
public class ListRepository
|
||||
{
|
||||
}
|
||||
}
|
||||
11
api/FilterLists.Models/FilterLists.Models.csproj
Normal file
11
api/FilterLists.Models/FilterLists.Models.csproj
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="7.0.7-m61" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
19
api/FilterLists.Models/List.cs
Normal file
19
api/FilterLists.Models/List.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace FilterLists.Models
|
||||
{
|
||||
public class List
|
||||
{
|
||||
[StringLength(1024)] [Column("description")] public string Description;
|
||||
[StringLength(512)] [Column("description_source_url")] public string DescriptionSourceUrl;
|
||||
[StringLength(512)] [Column("donate_url")] public string DonateUrl;
|
||||
[StringLength(128)] [Column("email")] public string Email;
|
||||
[StringLength(512)] [Column("forum_url")] public string ForumUrl;
|
||||
[StringLength(512)] [Column("home_url")] public string HomeUrl;
|
||||
[Key] [Column("id")] public int Id;
|
||||
[StringLength(512)] [Column("issues_url")] public string IssuesUrl;
|
||||
[StringLength(256)] [Column("name")] public string Name;
|
||||
[StringLength(512)] [Column("view_url")] public string ViewUrl;
|
||||
}
|
||||
}
|
||||
|
|
@ -3,7 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26403.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.API", "FilterLists.API\FilterLists.API.csproj", "{57E4CE18-41F3-48F6-B142-12947FFBA86C}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Api", "FilterLists.API\FilterLists.Api.csproj", "{57E4CE18-41F3-48F6-B142-12947FFBA86C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Data", "FilterLists.Data\FilterLists.Data.csproj", "{944ADE8F-18E3-4DB8-9098-6A55E026EAC1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilterLists.Models", "FilterLists.Models\FilterLists.Models.csproj", "{EBEF0C2E-2631-4AEF-ACAF-F5AE5A568975}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
|
@ -15,6 +19,14 @@ Global
|
|||
{57E4CE18-41F3-48F6-B142-12947FFBA86C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{57E4CE18-41F3-48F6-B142-12947FFBA86C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{57E4CE18-41F3-48F6-B142-12947FFBA86C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{944ADE8F-18E3-4DB8-9098-6A55E026EAC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{944ADE8F-18E3-4DB8-9098-6A55E026EAC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{944ADE8F-18E3-4DB8-9098-6A55E026EAC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{944ADE8F-18E3-4DB8-9098-6A55E026EAC1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EBEF0C2E-2631-4AEF-ACAF-F5AE5A568975}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EBEF0C2E-2631-4AEF-ACAF-F5AE5A568975}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EBEF0C2E-2631-4AEF-ACAF-F5AE5A568975}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EBEF0C2E-2631-4AEF-ACAF-F5AE5A568975}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
|||
Loading…
Reference in a new issue