Skip to content

Commit

Permalink
Mudando a estrutura para DDD
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusNCarvalho committed Aug 31, 2017
1 parent 03e0b1b commit 976c117
Show file tree
Hide file tree
Showing 3,558 changed files with 212,732 additions and 1,183,924 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added GoodLife/.vs/GoodLife/v15/.suo
Binary file not shown.

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions GoodLife/GoodLife.Common/GoodLife.Common.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F11D8C77-F4A0-4058-BF97-551800D3A034}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GoodLife.Common</RootNamespace>
<AssemblyName>GoodLife.Common</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
36 changes: 36 additions & 0 deletions GoodLife/GoodLife.Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GoodLife.Common")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GoodLife.Common")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f11d8c77-f4a0-4058-bf97-551800d3a034")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions GoodLife/GoodLife.Common/obj/Debug/CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9b5e981bb57e20258c027ba5f241f9bbd6647619
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Common\bin\Debug\GoodLife.Common.dll
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Common\bin\Debug\GoodLife.Common.pdb
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Common\obj\Debug\GoodLife.Common.csprojResolveAssemblyReference.cache
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Common\obj\Debug\GoodLife.Common.dll
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Common\obj\Debug\GoodLife.Common.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions GoodLife/GoodLife.Common/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoMapper" version="6.1.1" targetFramework="net452" />
</packages>
18 changes: 18 additions & 0 deletions GoodLife/GoodLife.Domain/Entidades/Administracao/Cidade.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

using System;

namespace GoodLife.Domain.Entidades.Administracao
{
public class Cidade
{
public int CidadeId { get; set; }
public DateTime DataCadastro { get; set; }
public DateTime DataAlteracao { get; set; }
public int IdUsuarioCadastrado { get; set; }
public int IdUsuarioAlteracao { get; set; }
public Boolean Status { get; set; }
public Pais Pais { get; set; }
public int EstadoId { get; set; }
public virtual Estado Estados { get; set; }
}
}
27 changes: 27 additions & 0 deletions GoodLife/GoodLife.Domain/Entidades/Administracao/Endereco.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;

namespace GoodLife.Domain.Entidades.Administracao
{
public class Endereco
{
public int EnderecoId { get; set; }
public DateTime DataCadastro { get; set; }
public DateTime DataAlteracao { get; set; }
public int IdUsuarioCadastrado { get; set; }
public int IdUsuarioAlteracao { get; set; }
public Boolean Status { get; set; }

public int Cep { get; set; }
public String Logradouro { get; set; }
public String Bairro { get; set; }
public Pais Pais { get; set; }
public int EstadoId { get; set; }
public virtual Estado Estados { get; set; }
public int CidadeID { get; set; }
public virtual Cidade Cidades { get; set; }

public int PessoaId { get; set; }
public virtual Pessoa Pessoa { get; set; }

}
}
22 changes: 22 additions & 0 deletions GoodLife/GoodLife.Domain/Entidades/Administracao/Estado.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


using System;

namespace GoodLife.Domain.Entidades.Administracao
{
public class Estado
{
public int EstadoId { get; set; }

public DateTime DataCadastro { get; set; }
public DateTime DataAlteracao { get; set; }
public int IdUsuarioCadastrado { get; set; }
public int IdUsuarioAlteracao { get; set; }
public Boolean Status { get; set; }

public String Sigla { get; set; }

public Pais Pais { get; set; }
public int CodigoIBGE { get; set; }
}
}
17 changes: 17 additions & 0 deletions GoodLife/GoodLife.Domain/Entidades/Administracao/Pais.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;

namespace GoodLife.Domain.Entidades.Administracao
{
public class Pais
{
public int PaisId { get; set; }
public DateTime DataCadastro { get; set; }
public DateTime DataAlteracao { get; set; }
public int IdUsuarioCadastrado { get; set; }
public int IdUsuarioAlteracao { get; set; }
public Boolean Status { get; set; }
public String Nome { get; set; }
public String teste { get; set; }
public String teste2 { get; set; }
}
}
37 changes: 37 additions & 0 deletions GoodLife/GoodLife.Domain/Entidades/Administracao/Pessoa.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections;
using System.Collections.Generic;
using GoodLife.Domain.Enum;
using System.ComponentModel.DataAnnotations;

namespace GoodLife.Domain.Entidades.Administracao
{
public class Pessoa
{
[Key]
public int ClienteId { get; set; }

public DateTime DataCadastro { get; set; }
public DateTime DataAlteracao { get; set; }
public int IdUsuarioCadastrado { get; set; }
public int IdUsuarioAlteracao { get; set; }
public Boolean Status { get; set; }

public string Nome { get; set; }


public string CpfCnpj { get; set; }

public TipoDocumento TipoDocumento { get; set; }


public string Email { get; set; }

public string Celular { get; set; }

public virtual IEnumerable<Endereco> Enderecos { get; set; }



}
}
9 changes: 9 additions & 0 deletions GoodLife/GoodLife.Domain/Enum/TipoDocumento.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


namespace GoodLife.Domain.Enum
{
public enum TipoDocumento
{

}
}
52 changes: 52 additions & 0 deletions GoodLife/GoodLife.Domain/GoodLife.Domain.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A8D7D4C2-B8F6-4ACC-88AF-AD502C71D546}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GoodLife.Domain</RootNamespace>
<AssemblyName>GoodLife.Domain</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="Entidades\Administracao\Cidade.cs" />
<Compile Include="Entidades\Administracao\Endereco.cs" />
<Compile Include="Entidades\Administracao\Estado.cs" />
<Compile Include="Entidades\Administracao\Pais.cs" />
<Compile Include="Entidades\Administracao\Pessoa.cs" />
<Compile Include="Enum\TipoDocumento.cs" />
<Compile Include="Interfaces\IPessoaRepositorio.cs" />
<Compile Include="Interfaces\IEnderecoRepositorio.cs" />
<Compile Include="Interfaces\IRepositorioBase.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Entidades\Visitantes\" />
<Folder Include="Services\" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.ComponentModel.DataAnnotations" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
13 changes: 13 additions & 0 deletions GoodLife/GoodLife.Domain/Interfaces/IEnderecoRepositorio.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


using System.Collections;
using System.Collections.Generic;
using GoodLife.Domain.Entidades.Administracao;

namespace GoodLife.Domain.Interfaces
{
public interface IEnderecoRepositorio: IRepositorioBase<Endereco>
{
IEnumerable<Endereco> BuscarPorNome(string nome);
}
}
10 changes: 10 additions & 0 deletions GoodLife/GoodLife.Domain/Interfaces/IPessoaRepositorio.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

using GoodLife.Domain.Entidades.Administracao;

namespace GoodLife.Domain.Interfaces
{
public interface IPessoaRepositorio : IRepositorioBase<Pessoa>
{

}
}
18 changes: 18 additions & 0 deletions GoodLife/GoodLife.Domain/Interfaces/IRepositorioBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


using System.Collections;
using System.Collections.Generic;

namespace GoodLife.Domain.Interfaces
{
public interface IRepositorioBase<TEntity> where TEntity : class
{
void salvar(TEntity obj);
TEntity GetById(int id);
IEnumerable<TEntity> GetAll();
void Update(TEntity obj);
void Remove(TEntity obj);
void Dispose();

}
}
36 changes: 36 additions & 0 deletions GoodLife/GoodLife.Domain/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GoodLife.Domain")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GoodLife.Domain")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("a8d7d4c2-b8f6-4acc-88af-ad502c71d546")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions GoodLife/GoodLife.Domain/obj/Debug/CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3a6db1e831baf5b1532368e342f912fa354f486c
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Domain\bin\Debug\GoodLife.Domain.dll
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Domain\bin\Debug\GoodLife.Domain.pdb
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Domain\obj\Debug\GoodLife.Domain.csprojResolveAssemblyReference.cache
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Domain\obj\Debug\GoodLife.Domain.dll
C:\Users\kaido\documents\visual studio 2017\Projects\GoodLife\GoodLife.Domain\obj\Debug\GoodLife.Domain.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions GoodLife/GoodLife.InfraEstrutura.Data/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
Loading

0 comments on commit 976c117

Please sign in to comment.