添加实体类

This commit is contained in:
zpc 2024-10-10 22:05:41 +08:00
parent 49c7ccd0d9
commit 66201a8fc3
52 changed files with 4782 additions and 0 deletions

View File

@ -28,6 +28,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CloudGaming.Model", "Model\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CloudGaming.Code", "Code\CloudGaming.Code\CloudGaming.Code.csproj", "{5F851D79-E435-4D16-974A-6D5E3A3269A7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudGaming.CreateDataBase", "Console\CloudGaming.CreateDataBase\CloudGaming.CreateDataBase.csproj", "{393ED915-3F88-4F84-AE2A-5C95F8867F16}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudGaming.GameModel", "Model\CloudGaming.GameModel\CloudGaming.GameModel.csproj", "{1120C146-6B83-4E4E-8A39-BD09466C7E1B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -50,6 +54,14 @@ Global
{5F851D79-E435-4D16-974A-6D5E3A3269A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F851D79-E435-4D16-974A-6D5E3A3269A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F851D79-E435-4D16-974A-6D5E3A3269A7}.Release|Any CPU.Build.0 = Release|Any CPU
{393ED915-3F88-4F84-AE2A-5C95F8867F16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{393ED915-3F88-4F84-AE2A-5C95F8867F16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{393ED915-3F88-4F84-AE2A-5C95F8867F16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{393ED915-3F88-4F84-AE2A-5C95F8867F16}.Release|Any CPU.Build.0 = Release|Any CPU
{1120C146-6B83-4E4E-8A39-BD09466C7E1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1120C146-6B83-4E4E-8A39-BD09466C7E1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1120C146-6B83-4E4E-8A39-BD09466C7E1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1120C146-6B83-4E4E-8A39-BD09466C7E1B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -59,6 +71,8 @@ Global
{0E60926E-0405-4A99-A3FF-2A494CCF02EA} = {51CB40D2-99F5-43E8-95B4-3A75C91736A6}
{5DAE20D8-B844-4EF8-ADA6-D7594E8ECCF7} = {A3F00FB0-49D6-48B1-99D9-4619634DF8D9}
{5F851D79-E435-4D16-974A-6D5E3A3269A7} = {FCA3CA4B-1993-429A-B2E9-2B05DB44F10E}
{393ED915-3F88-4F84-AE2A-5C95F8867F16} = {9F7EF36C-17BB-4F93-927E-F462FE3C9337}
{1120C146-6B83-4E4E-8A39-BD09466C7E1B} = {A3F00FB0-49D6-48B1-99D9-4619634DF8D9}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1D299D92-FA27-47A0-8D78-43D1FAFE7628}

View File

@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.10" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Model\CloudGaming.Model\CloudGaming.Model.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,17 @@
// See https://aka.ms/new-console-template for more information
using CloudGaming.Model.DbSqlServer.Db_Phone;
using CloudGaming.Model.DbSqlServer.Db_User;
using Microsoft.EntityFrameworkCore;
//Server=192.168.1.17;Database=CloudGamingUser;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;
var optionsBuilder = new DbContextOptionsBuilder<CloudGamingPhoneContext>();
var option = optionsBuilder.UseSqlServer("Server=192.168.1.17;Database=CloudGamingPhone;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;").Options;
CloudGamingPhoneContext cloudGamingPhoneContext = new CloudGamingPhoneContext(option);
cloudGamingPhoneContext.Database.EnsureCreated();
var x = cloudGamingPhoneContext.T_Epg_Cfg.Count();
//Server=192.168.1.17;Database=CloudGamingPhone;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;
var optionsBuilder1 = new DbContextOptionsBuilder<CloudGamingUserContext>();
var option1 = optionsBuilder1.UseSqlServer("Server=192.168.1.17;Database=CloudGamingUser;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;").Options;
CloudGamingUserContext cloud = new CloudGamingUserContext(option1);
cloud.Database.EnsureCreated();
//cloud.Database.

View File

@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Utile\HuanMeng.DotNetCore\HuanMeng.DotNetCore.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,389 @@
<#@ template hostSpecific="true" #>
<#@ assembly name="Microsoft.EntityFrameworkCore" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #>
<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #>
<#@ parameter name="Model" type="Microsoft.EntityFrameworkCore.Metadata.IModel" #>
<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #>
<#@ parameter name="NamespaceHint" type="System.String" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="Microsoft.EntityFrameworkCore" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Infrastructure" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Scaffolding" #>
<#@ import namespace="Microsoft.Extensions.DependencyInjection" #>
<#
if (!ProductInfo.GetVersion().StartsWith("8.0"))
{
Warning("Your templates were created using an older version of Entity Framework. Additional features and bug fixes may be available. See https://aka.ms/efcore-docs-updating-templates for more information.");
}
var services = (IServiceProvider)Host;
var providerCode = services.GetRequiredService<IProviderConfigurationCodeGenerator>();
var annotationCodeGenerator = services.GetRequiredService<IAnnotationCodeGenerator>();
var code = services.GetRequiredService<ICSharpHelper>();
var usings = new List<string>
{
"System",
"System.Collections.Generic",
"Microsoft.EntityFrameworkCore"
};
if (NamespaceHint != Options.ModelNamespace
&& !string.IsNullOrEmpty(Options.ModelNamespace))
{
usings.Add(Options.ModelNamespace);
}
if (!string.IsNullOrEmpty(NamespaceHint))
{
#>
namespace <#= NamespaceHint #>;
<#
}
#>
/// <summary>
/// 云游戏实体类
/// </summary>
public partial class <#= Options.ContextName #> : DbContext
{
<#
if (!Options.SuppressOnConfiguring)
{
#>
public <#= Options.ContextName #>() : base()
{
}
<#
}
#>
/// <summary>
/// 租户信息
/// </summary>
public ITenantInfo? TenantInfo { get; set; }
public <#= Options.ContextName #>(DbContextOptions<<#= Options.ContextName #>> options)
: base(options)
{
}
/// <summary>
///
/// </summary>
/// <param name="tenantInfo"></param>
public <#= Options.ContextName #>(ITenantInfo tenantInfo)
{
this.TenantInfo= tenantInfo;
}
/// <summary>
///
/// </summary>
/// <param name="tenantInfo"></param>
/// <param name="options"></param>
public <#= Options.ContextName #>(ITenantInfo tenantInfo, DbContextOptions<<#= Options.ContextName #>> options) : base(options)
{
this.TenantInfo= tenantInfo;
}
<#
foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType()))
{
#>
/// <summary>
/// <#=entityType.GetComment()??"" #>
/// </summary>
public virtual DbSet<<#= entityType.Name #>> <#= entityType.GetDbSetName() #> { get; set; }
<#
}
if (!Options.SuppressOnConfiguring)
{
#>
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
<#
if (!Options.SuppressConnectionStringWarning)
{
#>
<#
}
var useProviderCall = providerCode.GenerateUseProvider(Options.ConnectionString);
usings.AddRange(useProviderCall.GetRequiredUsings());
#>
=> optionsBuilder<#= code.Fragment(useProviderCall, indent: 3) #>;
<#
}
#>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
<#
var anyConfiguration = false;
var modelFluentApiCalls = Model.GetFluentApiCalls(annotationCodeGenerator);
if (modelFluentApiCalls != null)
{
usings.AddRange(modelFluentApiCalls.GetRequiredUsings());
#>
modelBuilder<#= code.Fragment(modelFluentApiCalls, indent: 3) #>;
<#
anyConfiguration = true;
}
StringBuilder mainEnvironment;
foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType()))
{
// Save all previously generated code, and start generating into a new temporary environment
mainEnvironment = GenerationEnvironment;
GenerationEnvironment = new StringBuilder();
if (anyConfiguration)
{
WriteLine("");
}
var anyEntityTypeConfiguration = false;
#>
modelBuilder.Entity<<#= entityType.Name #>>(entity =>
{
<#
var key = entityType.FindPrimaryKey();
if (key != null)
{
var keyFluentApiCalls = key.GetFluentApiCalls(annotationCodeGenerator);
if (keyFluentApiCalls != null
|| (!key.IsHandledByConvention() && !Options.UseDataAnnotations))
{
if (keyFluentApiCalls != null)
{
usings.AddRange(keyFluentApiCalls.GetRequiredUsings());
}
#>
entity.HasKey(<#= code.Lambda(key.Properties, "e") #>)<#= code.Fragment(keyFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
}
var entityTypeFluentApiCalls = entityType.GetFluentApiCalls(annotationCodeGenerator)
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations));
if (entityTypeFluentApiCalls != null)
{
usings.AddRange(entityTypeFluentApiCalls.GetRequiredUsings());
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
#>
entity<#= code.Fragment(entityTypeFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
foreach (var index in entityType.GetIndexes()
.Where(i => !(Options.UseDataAnnotations && i.IsHandledByDataAnnotations(annotationCodeGenerator))))
{
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator);
if (indexFluentApiCalls != null)
{
usings.AddRange(indexFluentApiCalls.GetRequiredUsings());
}
#>
entity.HasIndex(<#= code.Lambda(index.Properties, "e") #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
var firstProperty = true;
foreach (var property in entityType.GetProperties())
{
var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator)
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations)
&& !(c.Method == "IsRequired" && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType));
if (propertyFluentApiCalls == null)
{
continue;
}
usings.AddRange(propertyFluentApiCalls.GetRequiredUsings());
if (anyEntityTypeConfiguration && firstProperty)
{
WriteLine("");
}
#>
entity.Property(e => e.<#= property.Name #>)<#= code.Fragment(propertyFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
firstProperty = false;
}
foreach (var foreignKey in entityType.GetForeignKeys())
{
var foreignKeyFluentApiCalls = foreignKey.GetFluentApiCalls(annotationCodeGenerator)
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations));
if (foreignKeyFluentApiCalls == null)
{
continue;
}
usings.AddRange(foreignKeyFluentApiCalls.GetRequiredUsings());
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
#>
entity.HasOne(d => d.<#= foreignKey.DependentToPrincipal.Name #>).<#= foreignKey.IsUnique ? "WithOne" : "WithMany" #>(<#= foreignKey.PrincipalToDependent != null ? $"p => p.{foreignKey.PrincipalToDependent.Name}" : "" #>)<#= code.Fragment(foreignKeyFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
foreach (var skipNavigation in entityType.GetSkipNavigations().Where(n => n.IsLeftNavigation()))
{
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
var left = skipNavigation.ForeignKey;
var leftFluentApiCalls = left.GetFluentApiCalls(annotationCodeGenerator, useStrings: true);
var right = skipNavigation.Inverse.ForeignKey;
var rightFluentApiCalls = right.GetFluentApiCalls(annotationCodeGenerator, useStrings: true);
var joinEntityType = skipNavigation.JoinEntityType;
if (leftFluentApiCalls != null)
{
usings.AddRange(leftFluentApiCalls.GetRequiredUsings());
}
if (rightFluentApiCalls != null)
{
usings.AddRange(rightFluentApiCalls.GetRequiredUsings());
}
#>
entity.HasMany(d => d.<#= skipNavigation.Name #>).WithMany(p => p.<#= skipNavigation.Inverse.Name #>)
.UsingEntity<Dictionary<string, object>>(
<#= code.Literal(joinEntityType.Name) #>,
r => r.HasOne<<#= right.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(rightFluentApiCalls, indent: 6) #>,
l => l.HasOne<<#= left.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(leftFluentApiCalls, indent: 6) #>,
j =>
{
<#
var joinKey = joinEntityType.FindPrimaryKey();
var joinKeyFluentApiCalls = joinKey.GetFluentApiCalls(annotationCodeGenerator);
if (joinKeyFluentApiCalls != null)
{
usings.AddRange(joinKeyFluentApiCalls.GetRequiredUsings());
}
#>
j.HasKey(<#= code.Arguments(joinKey.Properties.Select(e => e.Name)) #>)<#= code.Fragment(joinKeyFluentApiCalls, indent: 7) #>;
<#
var joinEntityTypeFluentApiCalls = joinEntityType.GetFluentApiCalls(annotationCodeGenerator);
if (joinEntityTypeFluentApiCalls != null)
{
usings.AddRange(joinEntityTypeFluentApiCalls.GetRequiredUsings());
#>
j<#= code.Fragment(joinEntityTypeFluentApiCalls, indent: 7) #>;
<#
}
foreach (var index in joinEntityType.GetIndexes())
{
var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator);
if (indexFluentApiCalls != null)
{
usings.AddRange(indexFluentApiCalls.GetRequiredUsings());
}
#>
j.HasIndex(<#= code.Literal(index.Properties.Select(e => e.Name).ToArray()) #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 7) #>;
<#
}
foreach (var property in joinEntityType.GetProperties())
{
var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator);
if (propertyFluentApiCalls == null)
{
continue;
}
usings.AddRange(propertyFluentApiCalls.GetRequiredUsings());
#>
j.IndexerProperty<<#= code.Reference(property.ClrType) #>>(<#= code.Literal(property.Name) #>)<#= code.Fragment(propertyFluentApiCalls, indent: 7) #>;
<#
}
#>
});
<#
anyEntityTypeConfiguration = true;
}
#>
});
<#
// If any signicant code was generated, append it to the main environment
if (anyEntityTypeConfiguration)
{
mainEnvironment.Append(GenerationEnvironment);
anyConfiguration = true;
}
// Resume generating code into the main environment
GenerationEnvironment = mainEnvironment;
}
foreach (var sequence in Model.GetSequences())
{
var needsType = sequence.Type != typeof(long);
var needsSchema = !string.IsNullOrEmpty(sequence.Schema) && sequence.Schema != sequence.Model.GetDefaultSchema();
var sequenceFluentApiCalls = sequence.GetFluentApiCalls(annotationCodeGenerator);
#>
modelBuilder.HasSequence<#= needsType ? $"<{code.Reference(sequence.Type)}>" : "" #>(<#= code.Literal(sequence.Name) #><#= needsSchema ? $", {code.Literal(sequence.Schema)}" : "" #>)<#= code.Fragment(sequenceFluentApiCalls, indent: 3) #>;
<#
}
if (anyConfiguration)
{
WriteLine("");
}
#>
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}
<#
mainEnvironment = GenerationEnvironment;
GenerationEnvironment = new StringBuilder();
foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer()))
{
#>
using <#= ns #>;
<#
}
WriteLine("");
GenerationEnvironment.Append(mainEnvironment);
#>

View File

@ -0,0 +1,185 @@
<#@ template hostSpecific="true" #>
<#@ assembly name="Microsoft.EntityFrameworkCore" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #>
<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #>
<#@ parameter name="EntityType" type="Microsoft.EntityFrameworkCore.Metadata.IEntityType" #>
<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #>
<#@ parameter name="NamespaceHint" type="System.String" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.ComponentModel.DataAnnotations" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="Microsoft.EntityFrameworkCore" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #>
<#@ import namespace="Microsoft.Extensions.DependencyInjection" #>
<#
if (EntityType.IsSimpleManyToManyJoinEntityType())
{
// Don't scaffold these
return "";
}
var services = (IServiceProvider)Host;
var annotationCodeGenerator = services.GetRequiredService<IAnnotationCodeGenerator>();
var code = services.GetRequiredService<ICSharpHelper>();
var usings = new List<string>
{
// "System",
//"System.Collections.Generic",
};
if (Options.UseDataAnnotations)
{
usings.Add("System.ComponentModel.DataAnnotations");
usings.Add("System.ComponentModel.DataAnnotations.Schema");
usings.Add("Microsoft.EntityFrameworkCore");
}
if (!string.IsNullOrEmpty(NamespaceHint))
{
#>
namespace <#= NamespaceHint #>;
<#
}
if (!string.IsNullOrEmpty(EntityType.GetComment()))
{
#>
/// <summary>
/// <#= code.XmlComment(EntityType.GetComment()) #>
/// </summary>
<#
}
if (Options.UseDataAnnotations)
{
foreach (var dataAnnotation in EntityType.GetDataAnnotations(annotationCodeGenerator))
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
#>
public partial class <#= EntityType.Name #>: MultiTenantEntity
{
public <#= EntityType.Name #>() { }
<#
var firstProperty = true;
foreach (var property in EntityType.GetProperties().OrderBy(p => p.GetColumnOrder() ?? -1))
{
if (!firstProperty)
{
WriteLine("");
}
if(property.Name=="TenantId"){
#>
/// <summary>
/// 所属租户
/// </summary>
public override Guid TenantId { get; set; }
<#
continue;
}
if (!string.IsNullOrEmpty(property.GetComment()))
{
#>
/// <summary>
/// <#= code.XmlComment(property.GetComment(), indent: 1) #>
/// </summary>
<#
}
if (Options.UseDataAnnotations)
{
var dataAnnotations = property.GetDataAnnotations(annotationCodeGenerator)
.Where(a => !(a.Type == typeof(RequiredAttribute) && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType));
foreach (var dataAnnotation in dataAnnotations)
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
usings.AddRange(code.GetRequiredUsings(property.ClrType));
var needsNullable = Options.UseNullableReferenceTypes && property.IsNullable && !property.ClrType.IsValueType;
var needsInitializer = Options.UseNullableReferenceTypes && !property.IsNullable && !property.ClrType.IsValueType;
#>
public virtual <#= code.Reference(property.ClrType) #><#= needsNullable ? "?" : "" #> <#= property.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #>
<#
firstProperty = false;
}
foreach (var navigation in EntityType.GetNavigations())
{
WriteLine("");
if (Options.UseDataAnnotations)
{
foreach (var dataAnnotation in navigation.GetDataAnnotations(annotationCodeGenerator))
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
var targetType = navigation.TargetEntityType.Name;
if (navigation.IsCollection)
{
#>
public virtual ICollection<<#= targetType #>> <#= navigation.Name #> { get; set; } = new List<<#= targetType #>>();
<#
}
else
{
var needsNullable = Options.UseNullableReferenceTypes && !(navigation.ForeignKey.IsRequired && navigation.IsOnDependent);
var needsInitializer = Options.UseNullableReferenceTypes && navigation.ForeignKey.IsRequired && navigation.IsOnDependent;
#>
public virtual <#= targetType #><#= needsNullable ? "?" : "" #> <#= navigation.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #>
<#
}
}
foreach (var skipNavigation in EntityType.GetSkipNavigations())
{
WriteLine("");
if (Options.UseDataAnnotations)
{
foreach (var dataAnnotation in skipNavigation.GetDataAnnotations(annotationCodeGenerator))
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
#>
public virtual ICollection<<#= skipNavigation.TargetEntityType.Name #>> <#= skipNavigation.Name #> { get; set; } = new List<<#= skipNavigation.TargetEntityType.Name #>>();
<#
}
#>
}
<#
var previousOutput = GenerationEnvironment;
GenerationEnvironment = new StringBuilder();
foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer()))
{
#>
using <#= ns #>;
<#
}
WriteLine("");
GenerationEnvironment.Append(previousOutput);
#>

View File

@ -0,0 +1,135 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace CloudGaming.GameModel.Db.Db_Ext;
/// <summary>
/// 云游戏实体类
/// </summary>
public partial class CloudGamingCBTContext : DbContext
{
public CloudGamingCBTContext() : base()
{
}
/// <summary>
/// 租户信息
/// </summary>
public ITenantInfo? TenantInfo { get; set; }
public CloudGamingCBTContext(DbContextOptions<CloudGamingCBTContext> options)
: base(options)
{
}
/// <summary>
///
/// </summary>
/// <param name="tenantInfo"></param>
public CloudGamingCBTContext(ITenantInfo tenantInfo)
{
this.TenantInfo= tenantInfo;
}
/// <summary>
///
/// </summary>
/// <param name="tenantInfo"></param>
/// <param name="options"></param>
public CloudGamingCBTContext(ITenantInfo tenantInfo, DbContextOptions<CloudGamingCBTContext> options) : base(options)
{
this.TenantInfo= tenantInfo;
}
/// <summary>
/// App配置
/// </summary>
public virtual DbSet<T_Config> T_Config { get; set; }
/// <summary>
/// 图片列表
/// </summary>
public virtual DbSet<T_Images> T_Images { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseSqlServer("Server=192.168.1.17;Database=CloudGamingCBT;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;");
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<T_Config>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_APP_CONFIG");
entity.ToTable(tb => tb.HasComment("App配置"));
entity.Property(e => e.BossId)
.HasMaxLength(200)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.ConfigStr)
.HasMaxLength(2000)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Continent)
.HasMaxLength(200)
.HasComment("州 例:亚洲")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.CountryName)
.HasMaxLength(200)
.HasComment("国家 例:中国")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(2000)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Plat)
.HasMaxLength(100)
.IsUnicode(false)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.ShowName)
.HasMaxLength(200)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Images>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_VL_UI_IMAGES");
entity.ToTable(tb => tb.HasComment("图片列表"));
entity.Property(e => e.CreateTime)
.HasComment("创建时间")
.HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(100)
.HasComment("备注")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.ImageId).HasComment("图片Id");
entity.Property(e => e.Language)
.HasMaxLength(20)
.HasDefaultValue("zh")
.HasComment("语言")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Name)
.HasMaxLength(50)
.HasComment("图片名称")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Type).HasComment("类型");
entity.Property(e => e.UpdateTime)
.HasComment("修改时间")
.HasColumnType("datetime");
entity.Property(e => e.Url)
.HasMaxLength(200)
.HasComment("图片地址")
.UseCollation("Chinese_PRC_CI_AS");
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}

View File

@ -0,0 +1,47 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Ext;
/// <summary>
/// App配置
/// </summary>
public partial class T_Config: MultiTenantEntity
{
public T_Config() { }
public virtual int Id { get; set; }
public virtual int? ConfigType { get; set; }
public virtual int? ConfigId { get; set; }
public virtual bool? IsShow { get; set; }
public virtual string? ShowName { get; set; }
public virtual string? Desc { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual int? ConfigNum { get; set; }
public virtual int? ConfigNum2 { get; set; }
public virtual string? ConfigStr { get; set; }
public virtual string? BossId { get; set; }
public virtual string? Plat { get; set; }
/// <summary>
/// 州 例:亚洲
/// </summary>
public virtual string? Continent { get; set; }
/// <summary>
/// 国家 例:中国
/// </summary>
public virtual string? CountryName { get; set; }
}

View File

@ -0,0 +1,53 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Ext;
/// <summary>
/// 图片列表
/// </summary>
public partial class T_Images: MultiTenantEntity
{
public T_Images() { }
public virtual int Id { get; set; }
/// <summary>
/// 类型
/// </summary>
public virtual int? Type { get; set; }
/// <summary>
/// 图片Id
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 图片名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 图片地址
/// </summary>
public virtual string? Url { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime? UpdateTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string? Desc { get; set; }
/// <summary>
/// 语言
/// </summary>
public virtual string Language { get; set; } = null!;
}

View File

@ -0,0 +1,527 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 云游戏实体类
/// </summary>
public partial class CloudGamingGameContext : DbContext
{
public CloudGamingGameContext() : base()
{
}
/// <summary>
/// 租户信息
/// </summary>
public ITenantInfo? TenantInfo { get; set; }
public CloudGamingGameContext(DbContextOptions<CloudGamingGameContext> options)
: base(options)
{
}
/// <summary>
///
/// </summary>
/// <param name="tenantInfo"></param>
public CloudGamingGameContext(ITenantInfo tenantInfo)
{
this.TenantInfo= tenantInfo;
}
/// <summary>
///
/// </summary>
/// <param name="tenantInfo"></param>
/// <param name="options"></param>
public CloudGamingGameContext(ITenantInfo tenantInfo, DbContextOptions<CloudGamingGameContext> options) : base(options)
{
this.TenantInfo= tenantInfo;
}
/// <summary>
/// 难度列表
/// </summary>
public virtual DbSet<T_CGame_Difficultys> T_CGame_Difficultys { get; set; }
/// <summary>
/// 游戏中配置
/// </summary>
public virtual DbSet<T_GameConfig> T_GameConfig { get; set; }
/// <summary>
/// 游戏多选保存1 游戏类型 2 游戏标签 3 游戏心得4 游戏介绍 5 游戏操作心得
/// </summary>
public virtual DbSet<T_Game_ChildList> T_Game_ChildList { get; set; }
/// <summary>
/// 游戏多选保存1 游戏类型2 游戏标签3 游戏心得 4 游戏介绍5 游戏操作心得
/// </summary>
public virtual DbSet<T_Game_ChildTypes> T_Game_ChildTypes { get; set; }
/// <summary>
/// 游戏桌面配置
/// </summary>
public virtual DbSet<T_Game_DesktopConfig> T_Game_DesktopConfig { get; set; }
/// <summary>
/// 游戏开发商公司
/// </summary>
public virtual DbSet<T_Game_DeveloperCompanys> T_Game_DeveloperCompanys { get; set; }
/// <summary>
/// 开发商
/// </summary>
public virtual DbSet<T_Game_Developers> T_Game_Developers { get; set; }
/// <summary>
/// 发行方信息
/// </summary>
public virtual DbSet<T_Game_Issuers> T_Game_Issuers { get; set; }
/// <summary>
/// 游戏列表
/// </summary>
public virtual DbSet<T_Game_List> T_Game_List { get; set; }
/// <summary>
/// 游戏操作类型
/// </summary>
public virtual DbSet<T_Game_OperationModes> T_Game_OperationModes { get; set; }
/// <summary>
/// 预加载游戏
/// </summary>
public virtual DbSet<T_Game_Preload> T_Game_Preload { get; set; }
/// <summary>
/// 游戏设置配置
/// </summary>
public virtual DbSet<T_Game_Setting> T_Game_Setting { get; set; }
/// <summary>
/// 游戏标签
/// </summary>
public virtual DbSet<T_Game_Tags> T_Game_Tags { get; set; }
/// <summary>
/// 游戏类型
/// </summary>
public virtual DbSet<T_Game_Types> T_Game_Types { get; set; }
/// <summary>
/// 用户分享游戏
/// </summary>
public virtual DbSet<T_Game_UserShare> T_Game_UserShare { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseSqlServer("Server=192.168.1.17;Database=CloudGamingGame;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;");
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<T_CGame_Difficultys>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_DIFFICULTYS");
entity.ToTable(tb => tb.HasComment("难度列表"));
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.DiffcultyName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_GameConfig>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_UI_GAMECONFIG");
entity.ToTable(tb => tb.HasComment("游戏中配置"));
entity.Property(e => e.BuyPopId)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
entity.Property(e => e.VipBuyPopId)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
});
modelBuilder.Entity<T_Game_ChildList>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_CHILDLIST");
entity.ToTable(tb => tb.HasComment("游戏多选保存1 游戏类型 2 游戏标签 3 游戏心得4 游戏介绍 5 游戏操作心得"));
entity.Property(e => e.Desc)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameId)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.OrderId).HasComment("排序Id");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_ChildTypes>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_CHILDTYPES");
entity.ToTable(tb => tb.HasComment("游戏多选保存1 游戏类型2 游戏标签3 游戏心得 4 游戏介绍5 游戏操作心得"));
entity.Property(e => e.ChildIdName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_DesktopConfig>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_DESKTOPCONFIG");
entity.ToTable(tb => tb.HasComment("游戏桌面配置"));
entity.Property(e => e.Id).HasComment("主键,唯一标识");
entity.Property(e => e.BackGroundImage).HasComment("背景图片");
entity.Property(e => e.CreateTime)
.HasComment("创建时间")
.HasColumnType("datetime");
entity.Property(e => e.CreateUserName)
.HasMaxLength(100)
.HasComment("创建人")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameId)
.HasMaxLength(100)
.HasComment("游戏ID")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameName)
.HasMaxLength(100)
.HasComment("游戏名称")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.RestartImage).HasComment("重新启动图片");
entity.Property(e => e.RestartImageStyleLeft)
.HasMaxLength(20)
.HasComment("重新启动图片Left")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.RestartImageStyleTop)
.HasMaxLength(20)
.HasComment("重新启动图片Top")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.StartArgs)
.HasMaxLength(100)
.HasComment("启动参数")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.StartPath)
.HasMaxLength(200)
.HasComment("启动路径")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.SteamImage).HasComment("Steam图片");
entity.Property(e => e.SteamImageStyleLeft)
.HasMaxLength(20)
.HasComment("Steam图片样式")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.SteamImageStyleTop)
.HasMaxLength(20)
.HasComment("Steam图片样式")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.StopImage).HasComment("断开连接图片");
entity.Property(e => e.StopImageStyleLeft)
.HasMaxLength(100)
.HasComment("断开连接图片Left")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.StopImageStyleTop)
.HasMaxLength(100)
.HasComment("断开连接图片Top")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime)
.HasComment("修改时间")
.HasColumnType("datetime");
entity.Property(e => e.UpdateUserName)
.HasMaxLength(100)
.HasComment("创建时间")
.UseCollation("Chinese_PRC_CI_AS");
});
modelBuilder.Entity<T_Game_DeveloperCompanys>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_DEVELOPERCOMPANYS");
entity.ToTable(tb => tb.HasComment("游戏开发商公司"));
entity.Property(e => e.CompanyName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_Developers>(entity =>
{
entity.HasKey(e => e.ID).HasName("PK_T_CGAME_DEVELOPERS");
entity.ToTable(tb => tb.HasComment("开发商"));
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.DeveloperName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_Issuers>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_ISSUERS");
entity.ToTable(tb => tb.HasComment("发行方信息"));
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.IssuerName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_List>(entity =>
{
entity.HasKey(e => e.ID).HasName("PK_T_CGAME_LIST");
entity.ToTable(tb => tb.HasComment("游戏列表"));
entity.Property(e => e.CPCompany)
.HasMaxLength(50)
.HasDefaultValue("")
.HasComment("配对合作方公司")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.CPId)
.HasMaxLength(50)
.HasDefaultValue("")
.HasComment("配对id用来放置合作游戏方游戏id如方块科技之类的")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.CPIsFree).HasComment("配对第三方游戏是否免费0:免费,1收费");
entity.Property(e => e.DCompanyId).HasComment("CP开发公司");
entity.Property(e => e.Desc)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.DeveloperId).HasComment("游戏开发方");
entity.Property(e => e.GameCloudId)
.HasMaxLength(50)
.HasComment("CP游戏Id")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameId)
.HasMaxLength(100)
.HasComment("我们自己的游戏Id")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameIntroduce)
.HasComment("游戏介绍")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameIsAdapter).HasComment("游戏是否适配");
entity.Property(e => e.GameIsCrack).HasComment("游戏是否破解");
entity.Property(e => e.GameIsDevelopers).HasComment("游戏是否开发");
entity.Property(e => e.GameIsEditionMouse).HasComment("是否隐藏鼠标");
entity.Property(e => e.GameIsEditionNumber)
.HasDefaultValue(false)
.HasComment("是否有版号");
entity.Property(e => e.GameIsVersion).HasComment("游戏是否有版权");
entity.Property(e => e.GameIssuerId)
.HasMaxLength(100)
.HasComment("游戏发行方")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameName)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameRecommend)
.HasMaxLength(1000)
.HasComment("游戏推荐")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameSize)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameVersionDesc)
.HasMaxLength(100)
.HasComment("游戏版本详情")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameVersionNum)
.HasMaxLength(100)
.HasComment("游戏版本号")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.ScreenOrientation).HasComment("屏幕方向0-横屏 1-竖屏");
entity.Property(e => e.ServerPattern)
.HasDefaultValue(0)
.HasComment("服务器模式0容器1云桌面3海马云");
entity.Property(e => e.SteamId)
.HasMaxLength(30)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_OperationModes>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_OPERATIONMODES");
entity.ToTable(tb => tb.HasComment(" 游戏操作类型"));
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.Name)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_Preload>(entity =>
{
entity.ToTable(tb => tb.HasComment("预加载游戏"));
entity.Property(e => e.Id).HasComment("自增");
entity.Property(e => e.CreateTime)
.HasDefaultValueSql("(getdate())")
.HasComment("创建时间")
.HasColumnType("datetime");
entity.Property(e => e.GameId)
.HasMaxLength(50)
.HasDefaultValue("")
.HasComment("游戏Id")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.PreloadSum).HasComment("预加载数量");
entity.Property(e => e.UpdateTime)
.HasDefaultValueSql("(getdate())")
.HasComment("修改时间")
.HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_Setting>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_GAME_SETTING");
entity.ToTable(tb => tb.HasComment("游戏设置配置"));
entity.Property(e => e.CreateTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.IsOnline).HasComment("是否显示");
entity.Property(e => e.Name)
.HasMaxLength(100)
.HasComment("设置名字")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.OrderId).HasComment("设置排序");
entity.Property(e => e.SettingId).HasComment("设置Id");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_Tags>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_TAGS");
entity.ToTable(tb => tb.HasComment(" 游戏标签"));
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.Desc)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.TagName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_Types>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_T_CGAME_TYPES");
entity.ToTable(tb => tb.HasComment("游戏类型"));
entity.Property(e => e.CreatTime).HasColumnType("datetime");
entity.Property(e => e.TypeDetails)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.TypeName)
.HasMaxLength(50)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.TypeNameEn)
.HasMaxLength(100)
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UpdateTime).HasColumnType("datetime");
});
modelBuilder.Entity<T_Game_UserShare>(entity =>
{
entity.ToTable(tb => tb.HasComment("用户分享游戏"));
entity.Property(e => e.Id).HasComment("自增");
entity.Property(e => e.AppId)
.HasDefaultValue(1)
.HasComment("AppId配置");
entity.Property(e => e.CreateTime)
.HasDefaultValueSql("(getdate())")
.HasComment("创建时间")
.HasColumnType("datetime");
entity.Property(e => e.Explain)
.HasMaxLength(500)
.HasDefaultValue("")
.HasComment("说明")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameId)
.HasMaxLength(50)
.HasDefaultValue("")
.HasComment("游戏Id")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.GameName)
.HasMaxLength(50)
.HasDefaultValue("")
.HasComment("游戏名称")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.NickName)
.HasMaxLength(50)
.HasDefaultValue("")
.HasComment("用户昵称")
.UseCollation("Chinese_PRC_CI_AS");
entity.Property(e => e.UserHeadPortrait).HasComment("用户头像");
entity.Property(e => e.UserHeadPortraitFrame).HasComment("用户头像框");
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}

View File

@ -0,0 +1,23 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 难度列表
/// </summary>
public partial class T_CGame_Difficultys: MultiTenantEntity
{
public T_CGame_Difficultys() { }
public virtual int Id { get; set; }
public virtual int DifficultyID { get; set; }
public virtual string? DiffcultyName { get; set; }
public virtual string? Desc { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
}

View File

@ -0,0 +1,37 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏中配置
/// </summary>
public partial class T_GameConfig: MultiTenantEntity
{
public T_GameConfig() { }
public virtual int Id { get; set; }
public virtual int? ConfigType { get; set; }
public virtual int? ConfigId { get; set; }
public virtual int? BuyBgImageId { get; set; }
public virtual int? BuyBgUIId { get; set; }
public virtual int? BuySubmitImageId { get; set; }
public virtual int? BuySubmitUIId { get; set; }
public virtual int? BuyBackImageId { get; set; }
public virtual int? BuyBackUIId { get; set; }
public virtual string? VipBuyPopId { get; set; }
public virtual string? BuyPopId { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -0,0 +1,30 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏多选保存1 游戏类型 2 游戏标签 3 游戏心得4 游戏介绍 5 游戏操作心得
/// </summary>
public partial class T_Game_ChildList: MultiTenantEntity
{
public T_Game_ChildList() { }
public virtual int Id { get; set; }
public virtual string? GameId { get; set; }
public virtual int? ChildType { get; set; }
public virtual int? ChildId { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual string? Desc { get; set; }
public virtual int Odds { get; set; }
/// <summary>
/// 排序Id
/// </summary>
public virtual int OrderId { get; set; }
}

View File

@ -0,0 +1,21 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏多选保存1 游戏类型2 游戏标签3 游戏心得 4 游戏介绍5 游戏操作心得
/// </summary>
public partial class T_Game_ChildTypes: MultiTenantEntity
{
public T_Game_ChildTypes() { }
public virtual int Id { get; set; }
public virtual int? ChildType { get; set; }
public virtual string? ChildIdName { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -0,0 +1,106 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏桌面配置
/// </summary>
public partial class T_Game_DesktopConfig: MultiTenantEntity
{
public T_Game_DesktopConfig() { }
/// <summary>
/// 主键,唯一标识
/// </summary>
public virtual int Id { get; set; }
/// <summary>
/// 游戏ID
/// </summary>
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 游戏名称
/// </summary>
public virtual string GameName { get; set; } = null!;
/// <summary>
/// 背景图片
/// </summary>
public virtual int? BackGroundImage { get; set; }
/// <summary>
/// 重新启动图片
/// </summary>
public virtual int? RestartImage { get; set; }
/// <summary>
/// 重新启动图片Top
/// </summary>
public virtual string? RestartImageStyleTop { get; set; }
/// <summary>
/// 重新启动图片Left
/// </summary>
public virtual string? RestartImageStyleLeft { get; set; }
/// <summary>
/// 断开连接图片
/// </summary>
public virtual int? StopImage { get; set; }
/// <summary>
/// 断开连接图片Top
/// </summary>
public virtual string? StopImageStyleTop { get; set; }
/// <summary>
/// 断开连接图片Left
/// </summary>
public virtual string? StopImageStyleLeft { get; set; }
/// <summary>
/// Steam图片
/// </summary>
public virtual int? SteamImage { get; set; }
/// <summary>
/// Steam图片样式
/// </summary>
public virtual string? SteamImageStyleTop { get; set; }
/// <summary>
/// Steam图片样式
/// </summary>
public virtual string? SteamImageStyleLeft { get; set; }
/// <summary>
/// 启动路径
/// </summary>
public virtual string? StartPath { get; set; }
/// <summary>
/// 启动参数
/// </summary>
public virtual string? StartArgs { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime? UpdateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public virtual string? CreateUserName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual string? UpdateUserName { get; set; }
}

View File

@ -0,0 +1,23 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏开发商公司
/// </summary>
public partial class T_Game_DeveloperCompanys: MultiTenantEntity
{
public T_Game_DeveloperCompanys() { }
public virtual int Id { get; set; }
public virtual int? CompanyId { get; set; }
public virtual string? CompanyName { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -0,0 +1,23 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 开发商
/// </summary>
public partial class T_Game_Developers: MultiTenantEntity
{
public T_Game_Developers() { }
public virtual int ID { get; set; }
public virtual int DeveloperId { get; set; }
public virtual string? DeveloperName { get; set; }
public virtual string? Desc { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
}

View File

@ -0,0 +1,23 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 发行方信息
/// </summary>
public partial class T_Game_Issuers: MultiTenantEntity
{
public T_Game_Issuers() { }
public virtual int Id { get; set; }
public virtual int IssuerId { get; set; }
public virtual string? IssuerName { get; set; }
public virtual string? Desc { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
}

View File

@ -0,0 +1,131 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏列表
/// </summary>
public partial class T_Game_List: MultiTenantEntity
{
public T_Game_List() { }
public virtual int ID { get; set; }
/// <summary>
/// 我们自己的游戏Id
/// </summary>
public virtual string GameId { get; set; } = null!;
public virtual string? GameName { get; set; }
public virtual int? GameDifficultyId { get; set; }
public virtual int? GamePeopleNum { get; set; }
public virtual bool? GameIsSaveFile { get; set; }
/// <summary>
/// 游戏是否破解
/// </summary>
public virtual bool? GameIsCrack { get; set; }
/// <summary>
/// 游戏是否适配
/// </summary>
public virtual bool? GameIsAdapter { get; set; }
/// <summary>
/// 游戏是否有版权
/// </summary>
public virtual bool? GameIsVersion { get; set; }
/// <summary>
/// 游戏版本号
/// </summary>
public virtual string? GameVersionNum { get; set; }
/// <summary>
/// 游戏版本详情
/// </summary>
public virtual string? GameVersionDesc { get; set; }
/// <summary>
/// 游戏发行方
/// </summary>
public virtual string? GameIssuerId { get; set; }
/// <summary>
/// 游戏是否开发
/// </summary>
public virtual bool? GameIsDevelopers { get; set; }
/// <summary>
/// CP游戏Id
/// </summary>
public virtual string? GameCloudId { get; set; }
/// <summary>
/// CP开发公司
/// </summary>
public virtual int? DCompanyId { get; set; }
/// <summary>
/// 游戏开发方
/// </summary>
public virtual int? DeveloperId { get; set; }
public virtual int? OrderId { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual string? Desc { get; set; }
/// <summary>
/// 游戏介绍
/// </summary>
public virtual string? GameIntroduce { get; set; }
public virtual string? GameSize { get; set; }
/// <summary>
/// 配对id用来放置合作游戏方游戏id如方块科技之类的
/// </summary>
public virtual string CPId { get; set; } = null!;
/// <summary>
/// 配对合作方公司
/// </summary>
public virtual string CPCompany { get; set; } = null!;
/// <summary>
/// 配对第三方游戏是否免费0:免费,1收费
/// </summary>
public virtual int CPIsFree { get; set; }
/// <summary>
/// 屏幕方向0-横屏 1-竖屏
/// </summary>
public virtual int ScreenOrientation { get; set; }
/// <summary>
/// 服务器模式0容器1云桌面3海马云
/// </summary>
public virtual int? ServerPattern { get; set; }
/// <summary>
/// 是否有版号
/// </summary>
public virtual bool? GameIsEditionNumber { get; set; }
/// <summary>
/// 游戏推荐
/// </summary>
public virtual string? GameRecommend { get; set; }
/// <summary>
/// 是否隐藏鼠标
/// </summary>
public virtual bool? GameIsEditionMouse { get; set; }
public virtual string? SteamId { get; set; }
}

View File

@ -0,0 +1,23 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏操作类型
/// </summary>
public partial class T_Game_OperationModes: MultiTenantEntity
{
public T_Game_OperationModes() { }
public virtual int Id { get; set; }
public virtual int OperationModeId { get; set; }
public virtual string Name { get; set; } = null!;
public virtual string? Desc { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
}

View File

@ -0,0 +1,36 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 预加载游戏
/// </summary>
public partial class T_Game_Preload: MultiTenantEntity
{
public T_Game_Preload() { }
/// <summary>
/// 自增
/// </summary>
public virtual int Id { get; set; }
/// <summary>
/// 游戏Id
/// </summary>
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 预加载数量
/// </summary>
public virtual int PreloadSum { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime CreateTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime UpdateTime { get; set; }
}

View File

@ -0,0 +1,45 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏设置配置
/// </summary>
public partial class T_Game_Setting: MultiTenantEntity
{
public T_Game_Setting() { }
public virtual int Id { get; set; }
/// <summary>
/// 设置Id
/// </summary>
public virtual int? SettingId { get; set; }
/// <summary>
/// 设置名字
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 设置排序
/// </summary>
public virtual int? OrderId { get; set; }
/// <summary>
/// 是否显示
/// </summary>
public virtual bool? IsOnline { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual string? Desc { get; set; }
public virtual bool? IsOptional { get; set; }
public virtual int? ImageId { get; set; }
public virtual int? Grade { get; set; }
}

View File

@ -0,0 +1,23 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏标签
/// </summary>
public partial class T_Game_Tags: MultiTenantEntity
{
public T_Game_Tags() { }
public virtual int Id { get; set; }
public virtual int TagID { get; set; }
public virtual string TagName { get; set; } = null!;
public virtual string? Desc { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
}

View File

@ -0,0 +1,31 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 游戏类型
/// </summary>
public partial class T_Game_Types: MultiTenantEntity
{
public T_Game_Types() { }
public virtual int Id { get; set; }
public virtual int TypeId { get; set; }
public virtual string TypeName { get; set; } = null!;
public virtual string? TypeDetails { get; set; }
public virtual DateTime? CreatTime { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual int? Type { get; set; }
public virtual int? OrderId { get; set; }
public virtual bool? IsOnline { get; set; }
public virtual string? TypeNameEn { get; set; }
}

View File

@ -0,0 +1,56 @@
using System;
namespace CloudGaming.GameModel.Db.Db_Game;
/// <summary>
/// 用户分享游戏
/// </summary>
public partial class T_Game_UserShare: MultiTenantEntity
{
public T_Game_UserShare() { }
/// <summary>
/// 自增
/// </summary>
public virtual int Id { get; set; }
/// <summary>
/// 用户昵称
/// </summary>
public virtual string NickName { get; set; } = null!;
/// <summary>
/// 用户头像
/// </summary>
public virtual int UserHeadPortrait { get; set; }
/// <summary>
/// 用户头像框
/// </summary>
public virtual int UserHeadPortraitFrame { get; set; }
/// <summary>
/// 游戏Id
/// </summary>
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 游戏名称
/// </summary>
public virtual string GameName { get; set; } = null!;
/// <summary>
/// 说明
/// </summary>
public virtual string Explain { get; set; } = null!;
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime CreateTime { get; set; }
/// <summary>
/// AppId配置
/// </summary>
public virtual int AppId { get; set; }
}

View File

@ -0,0 +1,8 @@

##在API项目里面执行使用连接字符串名称生成代码到model项目
```sh
--game
dotnet ef dbcontext scaffold "Server=192.168.1.17;Database=CloudGamingGame;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer -o Db/Db_Game/ --use-database-names --no-pluralize --force
--Ext
dotnet ef dbcontext scaffold "Server=192.168.1.17;Database=CloudGamingCBT;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer -o Db/Db_Ext/ --use-database-names --no-pluralize --force
```

View File

@ -0,0 +1,2 @@
global using HuanMeng.DotNetCore.MultiTenant;
global using HuanMeng.DotNetCore.MultiTenant.Contract;

View File

@ -0,0 +1,48 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 用户头像框
/// </summary>
public partial class T_AvatarFrame: MultiTenantEntity
{
public T_AvatarFrame() { }
public virtual int Id { get; set; }
/// <summary>
/// 头像框Id
/// </summary>
public virtual string? AvatarId { get; set; }
/// <summary>
/// 头像框名称
/// </summary>
public virtual string? Name { get; set; }
public virtual int? ImageId { get; set; }
public virtual int? VipType { get; set; }
public virtual int? OrderId { get; set; }
public virtual bool? IsOnline { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
/// <summary>
/// 头像框备注用图
/// </summary>
public virtual int? ImageId2 { get; set; }
/// <summary>
/// 头像框名称色号
/// </summary>
public virtual string NameColor { get; set; } = null!;
}

View File

@ -0,0 +1,103 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// Epg分组配置表
/// </summary>
public partial class T_Epg_CategoryCfg: MultiTenantEntity
{
public T_Epg_CategoryCfg() { }
/// <summary>
/// epg分组Id
/// </summary>
public virtual int EpgCategory { get; set; }
/// <summary>
/// epg父组Id, 0无
/// </summary>
public virtual int EpgParentCategory { get; set; }
/// <summary>
/// 分组名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 排序-正序
/// </summary>
public virtual int OrderId { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool IsOnline { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
public virtual string? Extend1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
public virtual string? Extend2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
public virtual string? Extend3 { get; set; }
/// <summary>
/// 上线平台
/// </summary>
public virtual string? OnlinePlatform { get; set; }
/// <summary>
/// 首页展示数量
/// </summary>
public virtual int ShowNum_Index { get; set; }
/// <summary>
/// 代码标识
/// </summary>
public virtual string? IdName { get; set; }
/// <summary>
/// 图片-预留
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 图片-预留
/// </summary>
public virtual int ImageId2 { get; set; }
/// <summary>
/// 上线渠道,0不限制
/// </summary>
public virtual string? OnlineBossId { get; set; }
/// <summary>
/// 快速启动弹窗
/// </summary>
public virtual bool IsQuickStartPopUp { get; set; }
/// <summary>
/// 联机游戏快速启动弹窗
/// </summary>
public virtual bool IsOnlineQuickStartPopUp { get; set; }
/// <summary>
/// 审核模式下不显示
/// </summary>
public virtual bool? IsNotCheckingShow { get; set; }
/// <summary>
/// 非审核(正常)模式是否关闭
/// </summary>
public virtual int IsStandardClose { get; set; }
}

View File

@ -0,0 +1,80 @@

namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// Epg分组配置表
/// </summary>
public partial class T_Epg_CategoryCfg_Export: MultiTenantEntity
{
public T_Epg_CategoryCfg_Export() { }
/// <summary>
/// epg分组Id
/// </summary>
public virtual int EpgCategory { get; set; }
/// <summary>
/// epg父组Id, 0无
/// </summary>
public virtual int EpgParentCategory { get; set; }
/// <summary>
/// 分组名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 排序-正序
/// </summary>
public virtual int OrderId { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool IsOnline { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
public virtual string? Extend1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
public virtual string? Extend2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
public virtual string? Extend3 { get; set; }
/// <summary>
/// 上线平台
/// </summary>
public virtual string? OnlinePlatform { get; set; }
/// <summary>
/// 首页展示数量
/// </summary>
public virtual int ShowNum_Index { get; set; }
/// <summary>
/// 代码标识
/// </summary>
public virtual string? IdName { get; set; }
/// <summary>
/// 图片-预留
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 图片-预留
/// </summary>
public virtual int ImageId2 { get; set; }
/// <summary>
/// 上线渠道,0不限制
/// </summary>
public virtual string? OnlineBossId { get; set; }
}

View File

@ -0,0 +1,159 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// Epg配置表
/// </summary>
public partial class T_Epg_Cfg: MultiTenantEntity
{
public T_Epg_Cfg() { }
/// <summary>
/// 标识
/// </summary>
public virtual int EpgId { get; set; }
/// <summary>
/// epg分组
/// </summary>
public virtual int EpgCategory { get; set; }
/// <summary>
/// 资源Id
/// </summary>
public virtual string? ResId { get; set; }
/// <summary>
/// 资源类型
/// </summary>
public virtual int ResType { get; set; }
/// <summary>
/// 资源参数
/// </summary>
public virtual string? ResParams { get; set; }
/// <summary>
/// 排序-正序
/// </summary>
public virtual int OrderId { get; set; }
/// <summary>
/// 标题
/// </summary>
public virtual string? Title { get; set; }
/// <summary>
/// 标题2
/// </summary>
public virtual string? Title2 { get; set; }
/// <summary>
/// 图片
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 使用原始资源图样式n_n
/// </summary>
public virtual string? ImageResStyle { get; set; }
/// <summary>
/// 视频地址
/// </summary>
public virtual string? VideoUrl { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool IsOnline { get; set; }
/// <summary>
/// 角标
/// </summary>
public virtual int CornerIconId { get; set; }
/// <summary>
/// 展示样式more
/// </summary>
public virtual string? StyleType { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public virtual DateTime UpdateTime { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
public virtual string? Extend1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
public virtual string? Extend2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
public virtual string? Extend3 { get; set; }
public virtual string? OnlinePlatform { get; set; }
public virtual int SpecialId { get; set; }
public virtual string? IdName { get; set; }
/// <summary>
/// 图片2-预留
/// </summary>
public virtual int ImageId2 { get; set; }
public virtual string? OnlineBossId { get; set; }
/// <summary>
/// 视频标识
/// </summary>
public virtual string? VideoIdentification { get; set; }
/// <summary>
/// 联机快速启动
/// </summary>
public virtual bool IsOnlineQuickStartPopUp { get; set; }
/// <summary>
/// 启用时间
/// </summary>
public virtual DateTime? StartEnableTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public virtual DateTime? EndEnableTime { get; set; }
/// <summary>
/// 图片3
/// </summary>
public virtual int ImageId3 { get; set; }
/// <summary>
/// 国家
/// </summary>
public virtual string? CountryName { get; set; }
/// <summary>
/// 州
/// </summary>
public virtual string? Continent { get; set; }
/// <summary>
/// 非审核(正常)模式是否关闭
/// </summary>
public virtual int IsStandardClose { get; set; }
/// <summary>
/// 审核模式是否关闭
/// </summary>
public virtual int IsCheckingClose { get; set; }
}

View File

@ -0,0 +1,126 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// Epg配置表
/// </summary>
public partial class T_Epg_Cfg_Export: MultiTenantEntity
{
public T_Epg_Cfg_Export() { }
/// <summary>
/// 标识
/// </summary>
public virtual int EpgId { get; set; }
/// <summary>
/// epg分组
/// </summary>
public virtual int EpgCategory { get; set; }
/// <summary>
/// 资源Id
/// </summary>
public virtual string? ResId { get; set; }
/// <summary>
/// 资源类型
/// </summary>
public virtual int ResType { get; set; }
/// <summary>
/// 资源参数
/// </summary>
public virtual string? ResParams { get; set; }
/// <summary>
/// 排序-正序
/// </summary>
public virtual int OrderId { get; set; }
/// <summary>
/// 标题
/// </summary>
public virtual string? Title { get; set; }
/// <summary>
/// 标题2
/// </summary>
public virtual string? Title2 { get; set; }
/// <summary>
/// 图片
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 使用原始资源图样式n_n
/// </summary>
public virtual string? ImageResStyle { get; set; }
/// <summary>
/// 视频地址
/// </summary>
public virtual string? VideoUrl { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool IsOnline { get; set; }
/// <summary>
/// 角标
/// </summary>
public virtual int CornerIconId { get; set; }
/// <summary>
/// 展示样式more
/// </summary>
public virtual string? StyleType { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public virtual DateTime UpdateTime { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
public virtual string? Extend1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
public virtual string? Extend2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
public virtual string? Extend3 { get; set; }
/// <summary>
/// 上线平台
/// </summary>
public virtual string? OnlinePlatform { get; set; }
/// <summary>
/// 特殊标志
/// </summary>
public virtual int SpecialId { get; set; }
/// <summary>
/// 代码标识
/// </summary>
public virtual string? IdName { get; set; }
/// <summary>
/// 图片2
/// </summary>
public virtual int ImageId2 { get; set; }
/// <summary>
/// 上线渠道0不限
/// </summary>
public virtual string? OnlineBossId { get; set; }
}

View File

@ -0,0 +1,69 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 悬浮球配置
/// </summary>
public partial class T_FloatBall_Cfg: MultiTenantEntity
{
public T_FloatBall_Cfg() { }
public virtual int Id { get; set; }
/// <summary>
/// 名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 资源Id
/// </summary>
public virtual string? ResId { get; set; }
/// <summary>
/// 资源类型
/// </summary>
public virtual int ResType { get; set; }
/// <summary>
/// 坐标x
/// </summary>
public virtual double Pos1 { get; set; }
/// <summary>
/// 坐标y
/// </summary>
public virtual double Pos2 { get; set; }
/// <summary>
/// 是否点击后隐藏
/// </summary>
public virtual bool HideAfterClick { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool IsOnline { get; set; }
/// <summary>
/// 状态-显示
/// </summary>
public virtual int ImageId1 { get; set; }
/// <summary>
/// 状态-隐藏
/// </summary>
public virtual int ImageId2 { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime UpdateTime { get; set; }
/// <summary>
/// 渠道号id
/// </summary>
public virtual string BossId { get; set; } = null!;
}

View File

@ -0,0 +1,169 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 游戏配置
/// </summary>
public partial class T_GameCBT: MultiTenantEntity
{
public T_GameCBT() { }
public virtual int Id { get; set; }
/// <summary>
/// 游戏Id
/// </summary>
public virtual string? GameId { get; set; }
/// <summary>
/// 游戏详情也配置背景
/// </summary>
public virtual int? GameBgImgId { get; set; }
/// <summary>
/// 游戏Icon
/// </summary>
public virtual int? GameImageId { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool? IsOnline { get; set; }
/// <summary>
/// 评分
/// </summary>
public virtual string? Score { get; set; }
/// <summary>
/// 排序
/// </summary>
public virtual int? OrderId { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string? Desc { get; set; }
/// <summary>
/// 游戏加载图
/// </summary>
public virtual int? GameLoadBgImageId { get; set; }
/// <summary>
/// 游戏icon
/// </summary>
public virtual int? ImageIconId { get; set; }
/// <summary>
/// 是否测试游戏
/// </summary>
public virtual bool? IsTest { get; set; }
/// <summary>
/// VIP专属
/// </summary>
public virtual bool IsLimitToVip { get; set; }
/// <summary>
/// Loading时间
/// </summary>
public virtual int GameLoadTime { get; set; }
/// <summary>
/// 尊享推荐
/// </summary>
public virtual int ImageId_ZXTJ { get; set; }
/// <summary>
/// 精选推荐
/// </summary>
public virtual int ImageId_JXTJ { get; set; }
/// <summary>
/// 推荐大图
/// </summary>
public virtual int ImageId_TJ { get; set; }
public virtual string? Title2 { get; set; }
/// <summary>
/// 游戏名称
/// </summary>
public virtual string? GameName { get; set; }
/// <summary>
/// 最近推出
/// </summary>
public virtual int ImageId_ZJTC { get; set; }
/// <summary>
/// 顶部图片
/// </summary>
public virtual int ImageId_Banner { get; set; }
/// <summary>
/// 视频地址
/// </summary>
public virtual string? VideoUrl { get; set; }
/// <summary>
/// 每小时钻石费用
/// </summary>
public virtual int ConsumeDiamondNumHour { get; set; }
/// <summary>
/// 每小时VIP钻石费用
/// </summary>
public virtual int ConsumeDiamondNumHourVip { get; set; }
/// <summary>
/// 游戏分组0单机1steam2网游
/// </summary>
public virtual int GameGroup { get; set; }
/// <summary>
/// 会员等级限制
/// </summary>
public virtual int VipTypeLimit { get; set; }
/// <summary>
/// 仅会员可见
/// </summary>
public virtual bool VipVisible { get; set; }
/// <summary>
/// 是否参与优惠套餐活动(比如包夜卡,周中卡之类的)
/// </summary>
public virtual bool IsDiscount { get; set; }
/// <summary>
/// 平台类型,为空全选
/// </summary>
public virtual string OnlinePlatform { get; set; } = null!;
/// <summary>
/// 视频标识
/// </summary>
public virtual string? VideoIdentification { get; set; }
/// <summary>
/// vip国家
/// </summary>
public virtual string? VipCountryName { get; set; }
/// <summary>
/// 洲
/// </summary>
public virtual string? VipContinent { get; set; }
/// <summary>
/// 启动提示
/// </summary>
public virtual string? FriendlyTips { get; set; }
}

View File

@ -0,0 +1,34 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 游戏虚拟手柄,虚拟键盘设置
/// </summary>
public partial class T_GameInputSetting: MultiTenantEntity
{
public T_GameInputSetting() { }
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 是否有手柄
/// </summary>
public virtual bool IsGamePad { get; set; }
/// <summary>
/// 是否有虚拟键盘
/// </summary>
public virtual bool IsKeyboard { get; set; }
public virtual DateTime UpdateTime { get; set; }
public virtual DateTime CreateTime { get; set; }
public virtual string? Remark { get; set; }
/// <summary>
/// 是否显示切换键盘按钮
/// </summary>
public virtual bool IsToggleKeyboard { get; set; }
}

View File

@ -0,0 +1,44 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 游戏按键方案配置表
/// </summary>
public partial class T_GameKeyPlan_CBT: MultiTenantEntity
{
public T_GameKeyPlan_CBT() { }
public virtual int Id { get; set; }
/// <summary>
/// 游戏id
/// </summary>
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 排序
/// </summary>
public virtual int OrderId { get; set; }
/// <summary>
/// 方案名称
/// </summary>
public virtual string PlanName { get; set; } = null!;
/// <summary>
/// 是否启用
/// </summary>
public virtual bool IsOnline { get; set; }
public virtual DateTime CreateTime { get; set; }
public virtual DateTime UpdateTime { get; set; }
public virtual string? Remark { get; set; }
/// <summary>
/// 方案类型1键盘 2手柄
/// </summary>
public virtual int PlanType { get; set; }
}

View File

@ -0,0 +1,96 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 按键表
/// </summary>
public partial class T_GamePressKey: MultiTenantEntity
{
public T_GamePressKey() { }
/// <summary>
/// 主键
/// </summary>
public virtual int Id { get; set; }
/// <summary>
/// 按键名称
/// </summary>
public virtual string? PressKeyName { get; set; }
/// <summary>
/// 按键值
/// </summary>
public virtual string? PressKey { get; set; }
/// <summary>
/// 按键序号
/// </summary>
public virtual int? PressKeyIndex { get; set; }
/// <summary>
/// 按键类型,鼠标、键盘还是手柄的功能按键等
/// </summary>
public virtual int? PressKeyType { get; set; }
/// <summary>
/// 按键图片
/// </summary>
public virtual int? PressKeyImageId { get; set; }
/// <summary>
/// 选中图片
/// </summary>
public virtual int? PressKeySelectImageId { get; set; }
/// <summary>
/// 按键放大倍数
/// </summary>
public virtual decimal? PressKeyMagnification { get; set; }
/// <summary>
/// 按键X坐标
/// </summary>
public virtual decimal? PositionX { get; set; }
/// <summary>
/// 按键Y坐标
/// </summary>
public virtual decimal? PositionY { get; set; }
/// <summary>
/// 按键宽度
/// </summary>
public virtual int? PressKeyWidth { get; set; }
/// <summary>
/// 按键高度
/// </summary>
public virtual int? PressKeyHeight { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateDateTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime? UpdateDateTime { get; set; }
/// <summary>
/// 所属方案
/// </summary>
public virtual int? GamePressKeyPlanId { get; set; }
/// <summary>
/// 按键标识
/// </summary>
public virtual string? PressKeyIdentification { get; set; }
/// <summary>
/// 按键分组,手柄还是键盘
/// </summary>
public virtual int? GamePressKeyGroupBy { get; set; }
}

View File

@ -0,0 +1,61 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 游戏按键方案
/// </summary>
public partial class T_GamePressKeyPlan: MultiTenantEntity
{
public T_GamePressKeyPlan() { }
/// <summary>
/// 主键
/// </summary>
public virtual int Id { get; set; }
/// <summary>
/// 按键方案名称
/// </summary>
public virtual string? GamePressKeyPlanName { get; set; }
/// <summary>
/// 方案分组,键盘还是手柄
/// </summary>
public virtual int? GamePressKeyGroupBy { get; set; }
/// <summary>
/// 方案备注
/// </summary>
public virtual string? GamePressKeyRemark { get; set; }
/// <summary>
/// 是否默认,
/// </summary>
public virtual bool? GamePressKeyDefault { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateDateTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime? UpdateDateTime { get; set; }
/// <summary>
/// 标识
/// </summary>
public virtual string? Identification { get; set; }
/// <summary>
/// 所属游戏编号
/// </summary>
public virtual string? GameId { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool? IsEnable { get; set; }
}

View File

@ -0,0 +1,37 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 游戏展示
/// </summary>
public partial class T_GameShow: MultiTenantEntity
{
public T_GameShow() { }
public virtual int Id { get; set; }
public virtual string? Name { get; set; }
/// <summary>
/// 1图片2视频 展示类型
/// </summary>
public virtual int? Type { get; set; }
/// <summary>
/// 图片或者视频的Id
/// </summary>
public virtual int? DataId { get; set; }
public virtual string? GameId { get; set; }
public virtual int? OrderId { get; set; }
public virtual bool? IsOnline { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -0,0 +1,66 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 游戏减价配置表
/// </summary>
public partial class T_Game_DiscountCfg: MultiTenantEntity
{
public T_Game_DiscountCfg() { }
/// <summary>
/// 游戏Id
/// </summary>
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 折扣钻石价格
/// </summary>
public virtual int DiscountDiamondNum { get; set; }
/// <summary>
/// 折扣蘑菇币价格
/// </summary>
public virtual int DiscountMoguNum { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public virtual DateTime StartTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public virtual DateTime EndTime { get; set; }
/// <summary>
/// 状态-1禁用
/// </summary>
public virtual int Status { get; set; }
/// <summary>
/// 折扣每小时钻石费用
/// </summary>
public virtual int DiscountDiamondNumHour { get; set; }
/// <summary>
/// 折扣每小时蘑菇币费用
/// </summary>
public virtual int DiscountMoguNumHour { get; set; }
/// <summary>
/// 折扣资费描述-自定义
/// </summary>
public virtual string? ChargeDesc { get; set; }
/// <summary>
/// 每小时折扣VIP钻石费用
/// </summary>
public virtual int DiscountDiamondNumHourVip { get; set; }
/// <summary>
/// 每小时折扣VIP蘑菇币费用
/// </summary>
public virtual int DiscountMoguNumHourVip { get; set; }
}

View File

@ -0,0 +1,64 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 虚拟键盘配置表
/// </summary>
public partial class T_KeyboardSetting: MultiTenantEntity
{
public T_KeyboardSetting() { }
public virtual int Id { get; set; }
/// <summary>
/// 游戏Id
/// </summary>
public virtual string GameId { get; set; } = null!;
/// <summary>
/// 键的名字
/// </summary>
public virtual string Name { get; set; } = null!;
/// <summary>
/// 是否有这个键值
/// 没有这个选项表示用基本的
/// 如果有这个选项并且是ture 就用这个键值
/// 如果有这个选项并且是false就表示没有这个键值
/// </summary>
public virtual bool? IsOnline { get; set; }
/// <summary>
/// 键值位置,大小
/// </summary>
public virtual int UIId { get; set; }
public virtual DateTime CreateTime { get; set; }
public virtual DateTime UpdateTime { get; set; }
public virtual string? Remark { get; set; }
public virtual string? KeyIndex { get; set; }
/// <summary>
/// 按键类型0键盘1手柄
/// </summary>
public virtual int KeyType { get; set; }
/// <summary>
/// 游戏按键标识
/// </summary>
public virtual string? GameIdentification { get; set; }
/// <summary>
/// 是否可以拖动
/// </summary>
public virtual bool IsKeyDrag { get; set; }
/// <summary>
/// 是否按下锁定
/// </summary>
public virtual bool IsPressLock { get; set; }
}

View File

@ -0,0 +1,61 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 方案按键配置表
/// </summary>
public partial class T_PlanKey_CBT: MultiTenantEntity
{
public T_PlanKey_CBT() { }
public virtual int Id { get; set; }
/// <summary>
/// 方案id
/// </summary>
public virtual int PlanId { get; set; }
/// <summary>
/// 键盘对应的ascii码
/// </summary>
public virtual string? KeyIndex { get; set; }
public virtual string? KeyName { get; set; }
/// <summary>
/// 默认图片id
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 选中图片id
/// </summary>
public virtual int SelectImageId { get; set; }
/// <summary>
/// x坐标
/// </summary>
public virtual int X { get; set; }
/// <summary>
/// y坐标
/// </summary>
public virtual int Y { get; set; }
/// <summary>
/// w坐标或者宽度
/// </summary>
public virtual int W { get; set; }
/// <summary>
/// h坐标或者高度
/// </summary>
public virtual int H { get; set; }
public virtual DateTime CreateTime { get; set; }
public virtual DateTime UpdateTime { get; set; }
public virtual string? Remark { get; set; }
}

View File

@ -0,0 +1,95 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 通用弹框配置
/// </summary>
public partial class T_Popup: MultiTenantEntity
{
public T_Popup() { }
public virtual int Id { get; set; }
/// <summary>
/// 弹框类型
/// </summary>
public virtual int Type { get; set; }
/// <summary>
/// 弹框名字
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 弹框背景图
/// </summary>
public virtual int? Btn_Bg { get; set; }
/// <summary>
/// 弹窗显示文字
/// </summary>
public virtual string? Text { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public virtual bool? IsOnline { get; set; }
/// <summary>
/// 排序
/// </summary>
public virtual int? OrderId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public virtual DateTime? UpdateTime { get; set; }
public virtual string? Desc { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public virtual DateTime? StartTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public virtual DateTime? EndTime { get; set; }
/// <summary>
/// 上线渠道号
/// </summary>
public virtual string? BossId { get; set; }
/// <summary>
/// 上线平台
/// </summary>
public virtual string? PlatformId { get; set; }
/// <summary>
/// 确认按钮图片
/// </summary>
public virtual int? Btn_OK { get; set; }
/// <summary>
/// 关闭按钮图片
/// </summary>
public virtual int? Btn_Close { get; set; }
/// <summary>
/// 内容图片Id
/// </summary>
public virtual int? ImageId_Text { get; set; }
/// <summary>
/// 扩展参数1
/// </summary>
public virtual string? Extend1 { get; set; }
}

View File

@ -0,0 +1,58 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 弹窗按钮
/// </summary>
public partial class T_PopupBtn: MultiTenantEntity
{
public T_PopupBtn() { }
public virtual int Id { get; set; }
/// <summary>
/// 动作
/// </summary>
public virtual string Action { get; set; } = null!;
/// <summary>
/// 背景图片
/// </summary>
public virtual int? Image { get; set; }
/// <summary>
/// X坐标
/// </summary>
public virtual int? X { get; set; }
/// <summary>
/// Y坐标
/// </summary>
public virtual int? Y { get; set; }
/// <summary>
/// 宽度
/// </summary>
public virtual int? Widht { get; set; }
/// <summary>
/// 高度
/// </summary>
public virtual int? Height { get; set; }
/// <summary>
/// 文本
/// </summary>
public virtual string? Text { get; set; }
/// <summary>
/// 按钮名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 延迟几秒显示按钮
/// </summary>
public virtual int? DelaySecond { get; set; }
}

View File

@ -0,0 +1,28 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 七日签到奖励配置表
/// </summary>
public partial class T_SevenDaySignIn_AwardCBT: MultiTenantEntity
{
public T_SevenDaySignIn_AwardCBT() { }
public virtual int Id { get; set; }
public virtual int SignInId { get; set; }
/// <summary>
/// 1钻石 2蘑菇币 3贡献值 4一日会员
/// </summary>
public virtual int AwardType { get; set; }
public virtual int AwardNum { get; set; }
public virtual DateTime CreateTime { get; set; }
public virtual DateTime UpdateTime { get; set; }
public virtual string? Remark { get; set; }
}

View File

@ -0,0 +1,30 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 签到类型
/// </summary>
public partial class T_SignTypes: MultiTenantEntity
{
public T_SignTypes() { }
public virtual int Id { get; set; }
public virtual string? Name { get; set; }
/// <summary>
/// 签到类型
/// </summary>
public virtual int? Type { get; set; }
public virtual int? OrderId { get; set; }
public virtual bool? IsOnline { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -0,0 +1,50 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 系统公告
/// </summary>
public partial class T_SysMessage: MultiTenantEntity
{
public T_SysMessage() { }
public virtual int Id { get; set; }
/// <summary>
/// 消息Id
/// </summary>
public virtual int MessageId { get; set; }
/// <summary>
/// 名称
/// </summary>
public virtual string? Name { get; set; }
public virtual int? Type { get; set; }
/// <summary>
/// 内容
/// </summary>
public virtual string? Text { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
public virtual int LvExp { get; set; }
public virtual int MushroomCoin { get; set; }
public virtual int DiamondNum { get; set; }
public virtual int TemporaryMemberDay { get; set; }
public virtual DateTime StartTime { get; set; }
public virtual DateTime EndTime { get; set; }
public virtual int ReceiveType { get; set; }
}

View File

@ -0,0 +1,27 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 位置大小类型列表
/// </summary>
public partial class T_UITypes: MultiTenantEntity
{
public T_UITypes() { }
public virtual int Id { get; set; }
public virtual int? Type { get; set; }
public virtual string? Name { get; set; }
public virtual bool? IsOnline { get; set; }
public virtual int? OrderId { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -0,0 +1,48 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// UI集合
/// </summary>
public partial class T_UIs: MultiTenantEntity
{
public T_UIs() { }
public virtual int Id { get; set; }
public virtual int UIId { get; set; }
public virtual string? Name { get; set; }
public virtual int? Type { get; set; }
public virtual int? x { get; set; }
public virtual int? y { get; set; }
public virtual int? w { get; set; }
public virtual int? h { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
/// <summary>
/// 未选中图片id
/// </summary>
public virtual int ImageId { get; set; }
/// <summary>
/// 选中图片id
/// </summary>
public virtual int SelectedImage { get; set; }
/// <summary>
/// 放大倍数
/// </summary>
public virtual double Scale { get; set; }
}

View File

@ -0,0 +1,33 @@
using System;
namespace CloudGaming.Model.DbSqlServer.Db_Phone;
/// <summary>
/// 视频列表
/// </summary>
public partial class T_Videos: MultiTenantEntity
{
public T_Videos() { }
public virtual int Id { get; set; }
public virtual int VideoId { get; set; }
public virtual string? Name { get; set; }
public virtual int? Type { get; set; }
public virtual string? Url { get; set; }
public virtual int? ImageId { get; set; }
public virtual int? W { get; set; }
public virtual int? H { get; set; }
public virtual DateTime? UpdateTime { get; set; }
public virtual DateTime? CreateTime { get; set; }
public virtual string? Desc { get; set; }
}

View File

@ -3,4 +3,8 @@
```sh
--user
dotnet ef dbcontext scaffold "Server=192.168.1.17;Database=CloudGamingUser;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer -o DbSqlServer/Db_User/ --use-database-names --no-pluralize --force
--CloudGamingPhone
dotnet ef dbcontext scaffold "Server=192.168.1.17;Database=CloudGamingPhone;User Id=sa;Password=Dbt@com@123;TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer -o DbSqlServer/Db_Phone/ --use-database-names --no-pluralize --force
```