Skip to content

Commit

Permalink
Merge pull request #3 from Backiaraj/Grid
Browse files Browse the repository at this point in the history
Update the project from older version to latest version (using .NET 7 Framework)
  • Loading branch information
rajendranr-5483 authored Jan 31, 2024
2 parents 96362c1 + 45276a3 commit cc7fde9
Show file tree
Hide file tree
Showing 54 changed files with 393 additions and 1,522 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<Router AppAssembly="@typeof(Program).Assembly">
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;

namespace Grid_PreventQueryGeneration.Data
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public DateOnly Date { get; set; }

public int TemperatureC { get; set; }

public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

public string Summary { get; set; }
public string? Summary { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Linq;
using System.Threading.Tasks;

namespace Grid_PreventQueryGeneration.Data
{
public class WeatherForecastService
Expand All @@ -11,14 +7,13 @@ public class WeatherForecastService
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};

public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
{
var rng = new Random();
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = startDate.AddDays(index),
TemperatureC = rng.Next(-20, 55),
Summary = Summaries[rng.Next(Summaries.Length)]
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
}).ToArray());
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Syncfusion.Blazor.DropDowns" Version="24.1.47" />
<PackageReference Include="Syncfusion.Blazor.Grid" Version="24.1.47" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="24.1.47" />
</ItemGroup>

</Project>
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 16
VisualStudioVersion = 16.0.31729.503
# Visual Studio Version 17
VisualStudioVersion = 17.8.34408.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grid_PreventQueryGeneration", "Grid_PreventQueryGeneration\Grid_PreventQueryGeneration.csproj", "{4CF880D7-C4E0-40F8-AC29-921AD1A8FC50}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grid_PreventQueryGeneration", "Grid_PreventQueryGeneration.csproj", "{E02048DD-D173-47F8-9805-D11CD29C9752}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4CF880D7-C4E0-40F8-AC29-921AD1A8FC50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4CF880D7-C4E0-40F8-AC29-921AD1A8FC50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4CF880D7-C4E0-40F8-AC29-921AD1A8FC50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4CF880D7-C4E0-40F8-AC29-921AD1A8FC50}.Release|Any CPU.Build.0 = Release|Any CPU
{E02048DD-D173-47F8-9805-D11CD29C9752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E02048DD-D173-47F8-9805-D11CD29C9752}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E02048DD-D173-47F8-9805-D11CD29C9752}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E02048DD-D173-47F8-9805-D11CD29C9752}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2F2AA87F-1545-4F8E-83C4-C1A3CA7C6545}
SolutionGuid = {951FE6FC-8378-4800-891D-9D0B85D474EF}
EndGlobalSection
EndGlobal

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit cc7fde9

Please sign in to comment.