Applied 1.2.2.3
dotnet add package Applied --version 1.2.2.3
NuGet\Install-Package Applied -Version 1.2.2.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Applied" Version="1.2.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Applied" Version="1.2.2.3" />
<PackageReference Include="Applied" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Applied --version 1.2.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Applied, 1.2.2.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Applied@1.2.2.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Applied&version=1.2.2.3
#tool nuget:?package=Applied&version=1.2.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
public enum UserEnum
{
None,
User
}
[Serializable]
public class User
{
public int UserID { get; set; }
public string Name { get; set; }
public DateTime? Time { get; set; }
public UserEnum Enum { get; set; }
}
[Serializable]
public class UserViewModel
{
public int UserID { get; set; }
public string Name { get; set; }
public DateTime? Time { get; set; }
public UserEnum Enum { get; set; }
}
User[] users = new User[]
{
new User() { UserID = 1, Name = "Sam " },
new User() { UserID = 2, Name = "John " }
};
users.Apply(a => new { Time = DateTime.Now, Enum = UserEnum.User });
users.Trim();
users.Apply(a => new { Time = DateTime.Now, Enum = UserEnum.User }).Trim();
UserViewModel[] vm1 = users.ToDataEnumerable<User, UserViewModel>().ToArray();
DataTable dt1 = users.ToDataTable();
Dictionary<string, object>[] ds1 = users.ToDictionaries().ToArray();
UserViewModel[] vm2 = dt1.ToDataEnumerable<UserViewModel>().ToArray();
UserViewModel[] vm3 = ds1.ToDataEnumerable<UserViewModel>().ToArray();
DataTable dt2 = vm1.ToDataTable();
DataTable dt3 = ds1.ToDataTable();
Dictionary<string, object>[] ds2 = vm1.ToDictionaries().ToArray();
Dictionary<string, object>[] ds3 = dt1.ToDictionaries().ToArray();
public class TestData
{
public int Year { get; set; }
public string Name { get; set; }
public decimal Value { get; set; }
public decimal Sum { get; set; }
public decimal Average { get; set; }
public int RowNumber { get; set; }
public int Ntile { get; set; }
public int DenseRank { get; set; }
public int Rank { get; set; }
public decimal FirstValue { get; set; }
public decimal LastValue { get; set; }
public decimal NthValue { get; set; }
public decimal Lead { get; set; }
public decimal Lag { get; set; }
public decimal CumeDist { get; set; }
public decimal PercentRank { get; set; }
public decimal PercentileDisc { get; set; }
public decimal PercentileCont { get; set; }
public decimal KeepDenseRankFirst { get; set; }
public decimal KeepDenseRankLast { get; set; }
}
List data = new List();
data.Add(new TestData() { Year = 2019, Name = "A", Value = 111.1m });
data.Add(new TestData() { Year = 2019, Name = "B", Value = 333.3m });
data.Add(new TestData() { Year = 2019, Name = "C", Value = 333.3m });
data.Add(new TestData() { Year = 2019, Name = "A", Value = 222.2m });
data.Add(new TestData() { Year = 2019, Name = "C", Value = 444.4m });
data.Add(new TestData() { Year = 2019, Name = "A", Value = 222.2m });
data.Add(new TestData() { Year = 2019, Name = "B", Value = 333.3m });
data.Add(new TestData() { Year = 2019, Name = "C", Value = 555.5m });
data.Add(new TestData() { Year = 2020, Name = "A", Value = 111.1m });
data.Add(new TestData() { Year = 2020, Name = "B", Value = 333.3m });
data.Add(new TestData() { Year = 2020, Name = "A", Value = 222.2m });
data.Add(new TestData() { Year = 2020, Name = "C", Value = 333.3m });
data = data.GroupBy(a => new { a.Year }).AsPartition(p => p.OrderBy(a => a.Value).ThenBy(a => a.Name))
.Over(p => p.Sum(a => a.Value), a => a.Sum)
.Over(p => p.Average(a => a.Value), a => a.Average)
.Over(p => p.RowNumber(), a => a.RowNumber)
.Over(p => p.Ntile(2), a => a.Ntile)
.Over(p => p.DenseRank(), a => a.DenseRank)
.Over(p => p.Rank(), a => a.Rank)
.Over(p => p.FirstValue(a => a.Value), a => a.FirstValue)
.Over(p => p.LastValue(a => a.Value), a => a.LastValue)
.Over(p => p.NthValue(a => a.Value, 2), a => a.NthValue)
.Over(p => p.Lead(a => a.Value), a => a.Lead)
.Over(p => p.Lag(a => a.Value), a => a.Lag)
.Over(p => p.CumeDist(), a => a.CumeDist)
.Over(p => p.PercentRank(), a => a.PercentRank)
.Over(p => p.PercentileDisc(0.5m, a => a.Value), a => a.PercentileDisc)
.Over(p => p.PercentileCont(0.5m, a => a.Value), a => a.PercentileCont)
.Over(p => p.KeepDenseRankFirst(g => g.Sum(a => a.Value)), a => a.KeepDenseRankFirst)
.Over(p => p.KeepDenseRankLast(g => g.Sum(a => a.Value)), a => a.KeepDenseRankLast)
.ToList();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Applied:
| Package | Downloads |
|---|---|
|
Blazor.WebForm.Components
ASP.NET Web Forms System.Web.UI.WebControls Razor Components For Blazor WebAssembly, Blazor Hybrid, Blazor Server. |
GitHub repositories
This package is not used by any popular GitHub repositories.