Opting for precompiled plugins, removed CS-Script

Cleaned up Nuget packages
Cleaned up references
This commit is contained in:
SpoinkyNL committed 2019-04-10 00:33:21 +02:00
1 parent d5db17c0e3
commit 4e565f9d76
18 files changed
+133 -426

No files matched your search

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Artemis.Storage.Entities;
using Microsoft.EntityFrameworkCore;
namespace Artemis.Storage.Repositories
{
public class ProfileRepository
{
private readonly StorageContext _dbContext;
public ProfileRepository()
{
_dbContext = new StorageContext();
}
public IQueryable<ProfileEntity> GetAll()
{
return _dbContext.Profiles;
}
public async Task<IList<ProfileEntity>> GetByPluginGuidAsync(Guid pluginGuid)
{
return await _dbContext.Profiles.Where(p => p.PluginGuid == pluginGuid).ToListAsync();
}
public async Task<ProfileEntity> GetByGuidAsync(string guid)
{
return await _dbContext.Profiles.FirstOrDefaultAsync(p => p.Guid == guid);
}
public async Task SaveAsync()
{
await _dbContext.SaveChangesAsync();
}
}
}