Applied 1.2.1.2
See the version list below for details.
dotnet add package Applied --version 1.2.1.2
NuGet\Install-Package Applied -Version 1.2.1.2
<PackageReference Include="Applied" Version="1.2.1.2" />
paket add Applied --version 1.2.1.2
#r "nuget: Applied, 1.2.1.2"
// Install Applied as a Cake Addin #addin nuget:?package=Applied&version=1.2.1.2 // Install Applied as a Cake Tool #tool nuget:?package=Applied&version=1.2.1.2
public enum UserEnum { None, User } public class User { public int UserID { get; set; } public string Name { get; set; } public DateTime? Time { get; set; } public UserEnum Enum { get; set; } } 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();
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<TestData> data = new List<TestData>(); 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, value) ⇒ a.Apply(() ⇒ new { Sum = value })) .Over(p ⇒ p.Average(a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { Average = value })) .Over(p ⇒ p.RowNumber(), (a, value) ⇒ a.Apply(() ⇒ new { RowNumber = value })) .Over(p ⇒ p.Ntile(2), (a, value) ⇒ a.Apply(() ⇒ new { Ntile = value })) .Over(p ⇒ p.DenseRank(), (a, value) ⇒ a.Apply(() ⇒ new { DenseRank = value })) .Over(p ⇒ p.Rank(), (a, value) ⇒ a.Apply(() ⇒ new { Rank = value })) .Over(p ⇒ p.FirstValue(a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { FirstValue = value })) .Over(p ⇒ p.LastValue(a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { LastValue = value })) .Over(p ⇒ p.NthValue(a ⇒ a.Value, 2), (a, value) ⇒ a.Apply(() ⇒ new { NthValue = value })) .Over(p ⇒ p.Lead(a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { Lead = value })) .Over(p ⇒ p.Lag(a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { Lag = value })) .Over(p ⇒ p.CumeDist(), (a, value) ⇒ a.Apply(() ⇒ new { CumeDist = value })) .Over(p ⇒ p.PercentRank(), (a, value) ⇒ a.Apply(() ⇒ new { PercentRank = value })) .Over(p ⇒ p.PercentileDisc(0.5m, a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { PercentileDisc = value })) .Over(p ⇒ p.PercentileCont(0.5m, a ⇒ a.Value), (a, value) ⇒ a.Apply(() ⇒ new { PercentileCont = value })) .Over(p ⇒ p.KeepDenseRankFirst(g ⇒ g.Sum(a ⇒ a.Value)), (a, value) ⇒ a.Apply(() ⇒ new { KeepDenseRankFirst = value })) .Over(p ⇒ p.KeepDenseRankLast(g ⇒ g.Sum(a ⇒ a.Value)), (a, value) ⇒ a.Apply(() ⇒ new { KeepDenseRankLast = value })) .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. |
.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 | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. 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. |
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.