Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the final app #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified SimpleDataApp/.vs/SimpleDataApp/v17/.suo
Binary file not shown.
50 changes: 25 additions & 25 deletions SimpleDataApp/SimpleDataApp.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleDataApp", "SimpleDataApp\SimpleDataApp.csproj", "{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {35D8E8C7-4FF7-4056-8499-4C74FCCB1848}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleDataApp", "SimpleDataApp\SimpleDataApp.csproj", "{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C11F8F32-010B-46F5-8D05-88D4BEA7A2FB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {35D8E8C7-4FF7-4056-8499-4C74FCCB1848}
EndGlobalSection
EndGlobal
48 changes: 24 additions & 24 deletions SimpleDataApp/SimpleDataApp/App.config
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<?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>
<connectionStrings>
<add name="SimpleDataApp.Properties.Settings.Trab2_6ConnectionString" connectionString="Data Source=LAPTOP-OF0VQE88;Initial Catalog=Trab2_6;User ID=sa" providerName="System.Data.SqlClient" />
<add name="Trab2_6Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=LAPTOP-OF0VQE88;initial catalog=Trab2_6;persist security info=True;user id=sa;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="Trab2_6Entities1" connectionString="metadata=res://*/Model2.csdl|res://*/Model2.ssdl|res://*/Model2.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=LAPTOP-OF0VQE88;initial catalog=Trab2_6;user id=sa;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<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>
<?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>
<connectionStrings>
<add name="SimpleDataApp.Properties.Settings.Trab2_6ConnectionString" connectionString="Data Source=LAPTOP-OF0VQE88;Initial Catalog=Trab2_6;User ID=sa" providerName="System.Data.SqlClient" />
<add name="Trab2_6Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=LAPTOP-OF0VQE88;initial catalog=Trab2_6;persist security info=True;user id=sa;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="Trab2_6Entities1" connectionString="metadata=res://*/Model2.csdl|res://*/Model2.ssdl|res://*/Model2.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=LAPTOP-OF0VQE88;initial catalog=Trab2_6;user id=sa;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<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>
62 changes: 31 additions & 31 deletions SimpleDataApp/SimpleDataApp/Encomenda.cs
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace SimpleDataApp
{
using System;
using System.Collections.Generic;

public partial class Encomenda
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Encomenda()
{
this.LinhaEnc = new HashSet<LinhaEnc>();
}

public int EncId { get; set; }
public Nullable<int> ClienteId { get; set; }
public Nullable<System.DateTime> Data { get; set; }
public Nullable<decimal> Total { get; set; }

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<LinhaEnc> LinhaEnc { get; set; }
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SimpleDataApp
{
using System;
using System.Collections.Generic;
public partial class Encomenda
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Encomenda()
{
this.LinhaEnc = new HashSet<LinhaEnc>();
}
public int EncId { get; set; }
public Nullable<int> ClienteId { get; set; }
public Nullable<System.DateTime> Data { get; set; }
public Nullable<decimal> Total { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<LinhaEnc> LinhaEnc { get; set; }
}
}
Loading