frakcar sellen
This commit is contained in:
@@ -19,6 +19,8 @@ namespace ReallifeGamemode.Database.Entities
|
||||
|
||||
public List<int> GetOwners() => JsonConvert.DeserializeObject<List<int>>(Owners);
|
||||
|
||||
public int BuyPrice { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
|
||||
1847
ReallifeGamemode.Database/Migrations/20200506184310_FactionVehicleBuyPrice.Designer.cs
generated
Normal file
1847
ReallifeGamemode.Database/Migrations/20200506184310_FactionVehicleBuyPrice.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
public partial class FactionVehicleBuyPrice : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "BuyPrice",
|
||||
table: "ServerVehicles",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BuyPrice",
|
||||
table: "ServerVehicles");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1547,6 +1547,9 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle");
|
||||
|
||||
b.Property<int>("BuyPrice")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Owners")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user