ResourceTypeModel.cs 655 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Coscine.Database.Model;
using LinqToDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coscine.Api.Project.Models
{
    public class ResourceTypeModel : DatabaseModel<ResourceType>
    {
        public ResourceTypeModel() : base(Program.Configurator.Configuration)
        {

        }

        public override Guid GetIdFromObject(ResourceType databaseObject)
        {
            return databaseObject.Id;
        }

        public override ITable<ResourceType> GetITableFromDatabase(CoscineDB db)
        {
            return db.ResourceTypes;
        }
    }
}