ARUTAMLTH 1.0.0
dotnet add package ARUTAMLTH --version 1.0.0
NuGet\Install-Package ARUTAMLTH -Version 1.0.0
<PackageReference Include="ARUTAMLTH" Version="1.0.0" />
paket add ARUTAMLTH --version 1.0.0
#r "nuget: ARUTAMLTH, 1.0.0"
// Install ARUTAMLTH as a Cake Addin #addin nuget:?package=ARUTAMLTH&version=1.0.0 // Install ARUTAMLTH as a Cake Tool #tool nuget:?package=ARUTAMLTH&version=1.0.0
Microsoft.AspNetCore.Mvc.NewtonsoftJson
services.AddControllers().AddNewtonsoftJson(o => o.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
Dotnet controller
[FromQuery] ?sort=asc
using var transaction = Context.Database.BeginTransaction();
bike.Id = id;
var c = await Context.Bikes.FindAsync(id);
Context.Bikes.Remove(c);
Context.Bikes.Add(bike);
await Context.SaveChangesAsync();
await transaction.CommitAsync();
var startedRental = await Context.Rentals.FirstAsync();
startedRental.End = System.DateTime.Now;
startedRental.TotalCosts = CostCalculation.CalculateTotalCost(startedRental);
startedRental.Customer = await Context.Customers.FindAsync(rental.CustomerID);
startedRental.Bike = await Context.Bikes.FindAsync(rental.BikeID);
Context.Rentals.Update(startedRental);
await Context.SaveChangesAsync();
var result=await unpaid
.Include(c => c.Customer)
.Select(item => new { item.CustomerID, item.Customer.LastName, item.Customer.FirstName, item.Id, item.Begin, item.End })
.ToListAsync();
return (await dataContext.Deposits.Include("Membership.Member").ToArrayAsync())
.GroupBy(d => new { d.Membership.Begin.Year, d.Membership.Member })
.Select(i => new DepositStatistics
{
Year = i.Key.Year,
Member = i.Key.Member,
TotalAmount = i.Sum(d => d.Amount)
});
using var transaction = Database.BeginTransaction();
await Database.ExecuteSqlRawAsync("DELETE FROM Taxis");
await Database.ExecuteSqlRawAsync("DELETE FROM Drivers");
await Database.ExecuteSqlRawAsync("DELETE FROM Rides");
await transaction.CommitAsync();
var result = await Rides.Where(e => e.Start.Year == year and e.Start.Month == month).ToListAsync();
var drivers=result.GroupBy(d => d.Driver);
var ret=drivers.Select(b => new DriverStatistics
{
DriverName = b.Key.Name,
TotalCharge = b.Sum(d => d.Charge) ?? 0
});
public async Task T> GetFromServiceAsync T>(string path)
{
var response = await client.GetStringAsync(BASE_URL + path);
return JsonSerializer.Deserialize T>(response, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
}
public async Task HttpResponseMessage> PostToServiceAsync T>(string path, T payload )
{
var body = new StringContent(JsonSerializer.Serialize T>(payload), Encoding.UTF8, "application/json");
var response = await client.PostAsync(BASE_URL + path,body);
return response;
}
WPF GUI
BindableBase
Customers customers = new Customers(Customer, client);
customers.Show();
MainWindow.Close.Execute();
ComboBox ItemsSource="{Binding Taxis}" DisplayMemberPath="LicensePlate" SelectedItem="{Binding SelectedTaxi}" />
UpdateSourceTrigger=PropertyChanged
DataGrid Name="TaskTable" ItemsSource="{Binding Tasks}" RowEditEnding="TaskTable_RowEditEnding" AutoGenerateColumns="False" >
DataGrid.Columns>
DataGridTextColumn Header="TaskId" Binding="{Binding TaskId, UpdateSourceTrigger=LostFocus}"/>
public async void TaskTable_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e)
{
var task = e.Row.Item as Task;
await GetTasks();
if (task != null and task.Name == String.Empty)
{
var result = await client.DeleteToServiceAsync("Tasks/" + task.TaskId);
MessageBox.Show("DELETE" + result.StatusCode.ToString());
}
else if (Tasks.Any(b => b.TaskId == task.TaskId))
{
var result = await client.PutToServiceAsync("Tasks/" +task.TaskId, task);
MessageBox.Show("EDIT" + result.StatusCode.ToString());
}
else
{
var result = await client.PostToServiceAsync("Tasks" , task);
MessageBox.Show("ADD" + result.StatusCode.ToString());
}
await GetTasks();
}
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 | 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. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 2,364 | 5/24/2020 |