Skip to content

Commit

Permalink
Move query executor interfaces beside the implementations instead of …
Browse files Browse the repository at this point in the history
…in a separate file.
  • Loading branch information
Ethan Young committed Feb 16, 2014
1 parent 66cab04 commit 863f98f
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 65 deletions.
5 changes: 0 additions & 5 deletions Source/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,10 @@
<Compile Include="Persistence\ContactGroups\ContactGroupQueryExecutor.cs" />
<Compile Include="Persistence\ContactGroups\ContactGroupRepository.cs" />
<Compile Include="Persistence\ContactGroups\ContactGroupMemberRelationshipQueryExecutor.cs" />
<Compile Include="Persistence\ContactGroups\IContactGroupMemberQueryExecutor.cs" />
<Compile Include="Persistence\ContactGroups\IContactGroupQueryExecutor.cs" />
<Compile Include="Persistence\ContactGroups\PersistedContactGroup.cs" />
<Compile Include="Persistence\ContactGroups\PersistedContactGroupMember.cs" />
<Compile Include="Persistence\Contacts\ContactEmailAddressQueryExecutor.cs" />
<Compile Include="Persistence\Contacts\ContactPhoneNumberQueryExecutor.cs" />
<Compile Include="Persistence\Contacts\IContactPhoneNumberQueryExecutor.cs" />
<Compile Include="Persistence\Contacts\IContactEmailAddressQueryExecutor.cs" />
<Compile Include="Persistence\Contacts\IContactQueryExecutor.cs" />
<Compile Include="Persistence\Contacts\ContactQueryExecutor.cs" />
<Compile Include="Persistence\Contacts\ContactRepository.cs" />
<Compile Include="Persistence\Contacts\PersistedContact.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ public void DeleteByContactGroupId(long contactGroupId)
SqlMapper.Delete("DeleteContactGroupMembersByContactGroupId", contactGroupId);
}
}

public interface IContactGroupMemberQueryExecutor
{
void Insert(ContactGroupMember contactGroupMember);
void DeleteByContactGroupId(long contactGroupId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ public void DeleteByIdentifier(Guid identifier)
SqlMapper.Delete("DeleteContactGroupByIdentifier", identifier);
}
}

public interface IContactGroupQueryExecutor
{
void Insert(IContactGroup contactGroup);
void Update(IContactGroup contactGroup);
List<IContactGroup> SelectAll();
IContactGroup SelectByIdentifier(Guid identifier);
void DeleteByIdentifier(Guid identifier);
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ public void DeleteByContactId(long contactId)
SqlMapper.Delete("DeleteContactEmailAddressesByContactId", contactId);
}
}

public interface IContactEmailAddressQueryExecutor
{
void Insert(ContactEmailAddress contactEmailAddress);
void DeleteByContactId(long contactId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ public void DeleteByContactId(long contactId)
SqlMapper.Delete("DeleteContactPhoneNumbersByContactId", contactId);
}
}

public interface IContactPhoneNumberQueryExecutor
{
void Insert(ContactPhoneNumber contactPhoneNumber);
void DeleteByContactId(long contactId);
}
}
9 changes: 9 additions & 0 deletions Source/Core/Persistence/Contacts/ContactQueryExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ public void DeleteByIdentifier(Guid identifier)
SqlMapper.Delete("DeleteContactByIdentifier", identifier);
}
}

public interface IContactQueryExecutor
{
void Insert(IContact contact);
void Update(IContact contact);
List<IContact> SelectAll();
IContact SelectByIdentifier(Guid identifier);
void DeleteByIdentifier(Guid identifier);
}
}

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions Source/Core/Persistence/Contacts/IContactQueryExecutor.cs

This file was deleted.

0 comments on commit 863f98f

Please sign in to comment.