Skip to content

Commit 01d410f

Browse files
committed
.
1 parent c566c26 commit 01d410f

24 files changed

+205
-8
lines changed

Banco/1.banco.usuario.login.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ CREATE LOGIN meupatrimonio WITH PASSWORD = 'plenodotnetsigma';
1111
GO
1212

1313
CREATE USER meupatrimonio FOR LOGIN meupatrimonio WITH DEFAULT_SCHEMA = meupatrimonio;
14+
GO
15+
16+
GRANT execute,select,insert,update,delete TO MEUPATRIMONIO
1417
GO
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace MeuPatrimonio.Domain.Entities
8+
{
9+
public class EntityBase
10+
{
11+
public int Id { get; set; }
12+
}
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MeuPatrimonio.Domain.Entities
2+
{
3+
public class Marca : EntityBase
4+
{
5+
public string Nome { get; set; }
6+
}
7+
}

Codigo-fonte/src/MeuPatrimonio.Domain.Entities/MeuPatrimonio.Domain.Entities.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
<Reference Include="System.Xml" />
4141
</ItemGroup>
4242
<ItemGroup>
43+
<Compile Include="EntityBase.cs" />
44+
<Compile Include="Marca.cs" />
45+
<Compile Include="Modelo.cs" />
4346
<Compile Include="Properties\AssemblyInfo.cs" />
4447
</ItemGroup>
4548
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace MeuPatrimonio.Domain.Entities
2+
{
3+
public class Modelo : EntityBase
4+
{
5+
public string Nome { get; set; }
6+
public Marca Marca { get; set; }
7+
}
8+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2b1908110ffec047bc4a052090794ec993d15825
1+
7c6a7bbf5b025ace5ae1f1f76a0fb16b370efb1a
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace MeuPatrimonio.Domain.Repositories.Interfaces
5+
{
6+
public interface IRepositoryBase<TEntity> where TEntity : class
7+
{
8+
void Add(TEntity entity);
9+
void Remove(TEntity entity);
10+
void Update(TEntity entity);
11+
TEntity GetById(int id);
12+
IEnumerable<TEntity> GetAll(Func<TEntity, bool> filter = null);
13+
}
14+
}

Codigo-fonte/src/MeuPatrimonio.Domain.Repositories/MeuPatrimonio.Domain.Repositories.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
<Reference Include="System.Xml" />
4141
</ItemGroup>
4242
<ItemGroup>
43+
<Compile Include="Interfaces\IRepositoryBase.cs" />
4344
<Compile Include="Properties\AssemblyInfo.cs" />
4445
</ItemGroup>
45-
<ItemGroup>
46-
<Folder Include="Interfaces\" />
47-
</ItemGroup>
46+
<ItemGroup />
4847
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
4948
</Project>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2b1908110ffec047bc4a052090794ec993d15825
1+
be73f1b7864122cb6172379ce2648fe1a728618e

0 commit comments

Comments
 (0)