mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
temp. remove/comment jetbrains.annotations
This commit is contained in:
parent
beefeeac9a
commit
5010d650c4
8 changed files with 28 additions and 26 deletions
|
|
@ -15,7 +15,6 @@
|
|||
<Folder Include="wwwroot\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" developmentOnly="true" />
|
||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
using System.IO;
|
||||
using JetBrains.Annotations;
|
||||
//using JetBrains.Annotations;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
||||
namespace FilterLists.Api
|
||||
{
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public class Program
|
||||
{
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var host = new WebHostBuilder()
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
using FilterLists.Api.DependencyInjection.Extensions;
|
||||
using FilterLists.Data.DependencyInjection.Extensions;
|
||||
using FilterLists.Services.DependencyInjection.Extensions;
|
||||
using JetBrains.Annotations;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
//using JetBrains.Annotations;
|
||||
|
||||
namespace FilterLists.Api
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ public Startup(IHostingEnvironment env, ILoggerFactory loggerFactory)
|
|||
|
||||
private IConfigurationRoot Configuration { get; }
|
||||
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddFilterListsRepositories(Configuration);
|
||||
|
|
@ -36,7 +36,7 @@ public void ConfigureServices(IServiceCollection services)
|
|||
services.AddFilterListsApi();
|
||||
}
|
||||
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
app.UseMvc();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" developmentOnly="true" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.0" />
|
||||
<PackageReference Include="SapientGuardian.EntityFrameworkCore.MySql" Version="7.1.23" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
//using JetBrains.Annotations;
|
||||
|
||||
namespace FilterLists.Data.Models
|
||||
{
|
||||
|
|
@ -12,18 +13,18 @@ public abstract class BaseEntity
|
|||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public long Id { get; set; }
|
||||
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
//TODO: Implement http://stackoverflow.com/a/38102266/2343739 so DefaultValue takes effect in db automatically
|
||||
//For now, manually execute on new tables: InitializeNewTableBaseEntityDefaults.sql
|
||||
[DefaultValue("CURRENT_TIMESTAMP")]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public DateTime AddedDateUtc { get; set; }
|
||||
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public DateTime? ModifiedDateUtc { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,52 +1,53 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
//using JetBrains.Annotations;
|
||||
|
||||
namespace FilterLists.Data.Models
|
||||
{
|
||||
public class List : BaseEntity
|
||||
{
|
||||
[MaxLength(1022)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string Description { get; set; }
|
||||
|
||||
[MaxLength(2083)]
|
||||
[MinLength(6)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string DescriptionSourceUrl { get; set; }
|
||||
|
||||
[MaxLength(2083)]
|
||||
[MinLength(6)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string DonateUrl { get; set; }
|
||||
|
||||
[MaxLength(126)]
|
||||
[MinLength(7)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string Email { get; set; }
|
||||
|
||||
[MaxLength(2083)]
|
||||
[MinLength(6)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string ForumUrl { get; set; }
|
||||
|
||||
[MaxLength(2083)]
|
||||
[MinLength(6)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string HomeUrl { get; set; }
|
||||
|
||||
[MaxLength(2083)]
|
||||
[MinLength(6)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string IssuesUrl { get; set; }
|
||||
|
||||
[MaxLength(126)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(2083)]
|
||||
[MinLength(6)]
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public string ViewUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -3,11 +3,12 @@
|
|||
using FilterLists.Data.Contexts;
|
||||
using FilterLists.Data.Models;
|
||||
using FilterLists.Data.Repositories.Contracts;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
//using JetBrains.Annotations;
|
||||
|
||||
namespace FilterLists.Data.Repositories.Implementations
|
||||
{
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public class ListRepository : IListRepository
|
||||
{
|
||||
private readonly FilterListsDbContext _filterListsDbContext;
|
||||
|
|
|
|||
|
|
@ -2,11 +2,12 @@
|
|||
using FilterLists.Data.Models;
|
||||
using FilterLists.Data.Repositories.Contracts;
|
||||
using FilterLists.Services.Contracts;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
//using JetBrains.Annotations;
|
||||
|
||||
namespace FilterLists.Services.Implementations
|
||||
{
|
||||
[UsedImplicitly]
|
||||
//[UsedImplicitly]
|
||||
public class ListService : IListService
|
||||
{
|
||||
private readonly IListRepository _listRepository;
|
||||
|
|
|
|||
Loading…
Reference in a new issue