creazione primi repository e interfacce
This commit is contained in:
1 parent
b7983dae8e
commit
0a6744e8b0
19 files changed
+644
-39
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using uWine.Core.Domain.Entities;
|
||||
|
||||
namespace uWine.Core.Domain.Repositories
|
||||
{
|
||||
public interface IContactRepository
|
||||
{
|
||||
ContactType GetContactType(int contactTypeId);
|
||||
void InsertContactType(ContactType contactType);
|
||||
void InsertOwnerContact(Contact contact, int ownerId);
|
||||
List<Contact> OwnerContacts(int ownerId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using uWine.Core.Domain.Entities;
|
||||
|
||||
namespace uWine.Core.Domain.Repositories
|
||||
{
|
||||
public interface IOwnerRepository
|
||||
{
|
||||
void AddAddress(int ownerId, Address address);
|
||||
void Insert(Owner owner);
|
||||
Owner Simple(int ownerId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using uWine.Core.Domain.Entities;
|
||||
|
||||
namespace uWine.Core.Domain.Repositories
|
||||
{
|
||||
public interface IVineyardRepository
|
||||
{
|
||||
List<Vineyard> GetOwnerVineyards(int ownerId);
|
||||
void Insert(Vineyard vineyard, int ownerId);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user