基础框架搭建
This commit is contained in:
parent
7d230f7b96
commit
7ab5f7db11
@ -0,0 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Abp.EntityFrameworkCore" Version="6.4.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\src\YunDa.Core\YunDa.ISAS.Core\YunDa.ISAS.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,19 @@
|
||||
using CodeFirstExistingDatabaseSample.ISMS_BASE;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System;
|
||||
|
||||
//using Pomelo.EntityFrameworkCore.MySql.Infrastructure;
|
||||
//using System;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample
|
||||
{
|
||||
public static class DbContextOptionsConfigurer
|
||||
{
|
||||
public static void Configure(DbContextOptionsBuilder<ISMS_BASEContext> dbContextOptions, string connectionString)
|
||||
{
|
||||
/* dbContextOptions.UseSqlServer("Server=192.168.110.161;User ID=sa;Password=sa;Database=ISMS_BASE;Trusted_Connection=False;")*/;
|
||||
dbContextOptions.UseSqlServer(connectionString, builder => { builder.CommandTimeout(30); });
|
||||
}
|
||||
}
|
||||
}
|
29
CodeFirstExistingDatabaseSample/ISMSDbContextFactory.cs
Normal file
29
CodeFirstExistingDatabaseSample/ISMSDbContextFactory.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using CodeFirstExistingDatabaseSample.ISMS_BASE;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Design;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using YunDa.ISAS.Core;
|
||||
using YunDa.ISAS.Core.Configuration;
|
||||
using YunDa.ISAS.Core.Web;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample
|
||||
{
|
||||
/* This class is needed to run EF Core PMC commands. Not used anywhere else */
|
||||
|
||||
public class ISMSDbContextFactory : IDesignTimeDbContextFactory<ISMS_BASEContext>
|
||||
{
|
||||
public ISMS_BASEContext CreateDbContext(string[] args)
|
||||
{
|
||||
var builder = new DbContextOptionsBuilder<ISMS_BASEContext>();
|
||||
var configuration = ISASConfiguration.Get(WebContentDirectoryFinder.CalculateContentRootFolder());
|
||||
|
||||
DbContextOptionsConfigurer.Configure(
|
||||
builder,
|
||||
configuration.GetConnectionString(ISASConsts.ISMS_BASESqlServerSettingStringKey)
|
||||
);
|
||||
return new ISMS_BASEContext(builder.Options);
|
||||
}
|
||||
}
|
||||
|
||||
/* This class is needed to run EF Core PMC commands. Not used anywhere else */
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaFuncNameConst
|
||||
{
|
||||
public string FnameId { get; set; } = null!;
|
||||
public string Fname { get; set; } = null!;
|
||||
public int? SeqNo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaMaChannel
|
||||
{
|
||||
public string RecId { get; set; } = null!;
|
||||
public string MaId { get; set; } = null!;
|
||||
public string ChanId { get; set; } = null!;
|
||||
|
||||
public virtual IaMonitorArea Ma { get; set; } = null!;
|
||||
}
|
||||
}
|
19
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/IaModule.cs
Normal file
19
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/IaModule.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaModule
|
||||
{
|
||||
public string ModuleId { get; set; } = null!;
|
||||
public string ModuleName { get; set; } = null!;
|
||||
public string DirId { get; set; } = null!;
|
||||
public string ModuleType { get; set; } = null!;
|
||||
public string FuncId { get; set; } = null!;
|
||||
public string? ImgName { get; set; }
|
||||
public int? SeqNo { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
|
||||
public virtual IaModuleDir Dir { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaModuleDir
|
||||
{
|
||||
public IaModuleDir()
|
||||
{
|
||||
IaModules = new HashSet<IaModule>();
|
||||
}
|
||||
|
||||
public string DirId { get; set; } = null!;
|
||||
public string DirName { get; set; } = null!;
|
||||
public int? SeqNo { get; set; }
|
||||
|
||||
public virtual ICollection<IaModule> IaModules { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaMonitorArea
|
||||
{
|
||||
public IaMonitorArea()
|
||||
{
|
||||
IaMaChannels = new HashSet<IaMaChannel>();
|
||||
}
|
||||
|
||||
public string MaId { get; set; } = null!;
|
||||
public string? ParentId { get; set; }
|
||||
public string Maname { get; set; } = null!;
|
||||
public string StatCode { get; set; } = null!;
|
||||
public int? SeqNo { get; set; }
|
||||
|
||||
public virtual ImStation StatCodeNavigation { get; set; } = null!;
|
||||
public virtual ICollection<IaMaChannel> IaMaChannels { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaStatAccCtler
|
||||
{
|
||||
public string CtlerId { get; set; } = null!;
|
||||
public string StatCode { get; set; } = null!;
|
||||
|
||||
public virtual TbAccessController Ctler { get; set; } = null!;
|
||||
public virtual ImStation StatCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaStatAidVideoDev
|
||||
{
|
||||
public string RecId { get; set; } = null!;
|
||||
public string StatCode { get; set; } = null!;
|
||||
public string DevId { get; set; } = null!;
|
||||
|
||||
public virtual TbAidVideoDev Dev { get; set; } = null!;
|
||||
public virtual ImStation StatCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVAllChannel
|
||||
{
|
||||
public string ChanId { get; set; } = null!;
|
||||
public string ChanName { get; set; } = null!;
|
||||
public string DevId { get; set; } = null!;
|
||||
public string DevName { get; set; } = null!;
|
||||
public string ChanType { get; set; } = null!;
|
||||
public string UseState { get; set; } = null!;
|
||||
public int? SeqNo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVAllFunc4Module
|
||||
{
|
||||
public string FuncId { get; set; } = null!;
|
||||
public string? FuncName { get; set; }
|
||||
public string FuncType { get; set; } = null!;
|
||||
public string? OrderFld { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVMaChannel
|
||||
{
|
||||
public string RecId { get; set; } = null!;
|
||||
public string MaId { get; set; } = null!;
|
||||
public string ChanId { get; set; } = null!;
|
||||
public string ChanName { get; set; } = null!;
|
||||
public string DevId { get; set; } = null!;
|
||||
public string DevName { get; set; } = null!;
|
||||
public string ChanType { get; set; } = null!;
|
||||
public string UseState { get; set; } = null!;
|
||||
public int? SeqNo { get; set; }
|
||||
public string Maname { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVModule
|
||||
{
|
||||
public string ModuleId { get; set; } = null!;
|
||||
public string ModuleName { get; set; } = null!;
|
||||
public string DirId { get; set; } = null!;
|
||||
public string ModuleType { get; set; } = null!;
|
||||
public string FuncId { get; set; } = null!;
|
||||
public string? ImgName { get; set; }
|
||||
public int? SeqNo { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
public string DirName { get; set; } = null!;
|
||||
public int? DirSeqNo { get; set; }
|
||||
public string? FuncName { get; set; }
|
||||
public string? FuncType { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVStatAidVideoDev
|
||||
{
|
||||
public string RecId { get; set; } = null!;
|
||||
public string StatCode { get; set; } = null!;
|
||||
public string StatName { get; set; } = null!;
|
||||
public string DevId { get; set; } = null!;
|
||||
public string PlatId { get; set; } = null!;
|
||||
public string DevName { get; set; } = null!;
|
||||
public string? Ip { get; set; }
|
||||
public int? Port { get; set; }
|
||||
public string? UserName { get; set; }
|
||||
public string? PassEnc { get; set; }
|
||||
public string? Model { get; set; }
|
||||
public string? Manufacturer { get; set; }
|
||||
public string UseState { get; set; } = null!;
|
||||
public int? SeqNo { get; set; }
|
||||
public string? Comment { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVVideoPatrolItemExecObj
|
||||
{
|
||||
public string ExeObjId { get; set; } = null!;
|
||||
public string? ExeObjName { get; set; }
|
||||
public string ExeObjType { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVideoPatrol
|
||||
{
|
||||
public IaVideoPatrol()
|
||||
{
|
||||
IaVideoPatrolItems = new HashSet<IaVideoPatrolItem>();
|
||||
}
|
||||
|
||||
public string PatId { get; set; } = null!;
|
||||
public string PatName { get; set; } = null!;
|
||||
public string PrjId { get; set; } = null!;
|
||||
public string? PatType { get; set; }
|
||||
public int? SeqNo { get; set; }
|
||||
public string? Comment { get; set; }
|
||||
public DateTime CreTime { get; set; }
|
||||
|
||||
public virtual ImProject Prj { get; set; } = null!;
|
||||
public virtual ICollection<IaVideoPatrolItem> IaVideoPatrolItems { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVideoPatrolHi
|
||||
{
|
||||
public IaVideoPatrolHi()
|
||||
{
|
||||
IaVideoPatrolItemHis = new HashSet<IaVideoPatrolItemHi>();
|
||||
}
|
||||
|
||||
public string PatHisId { get; set; } = null!;
|
||||
public string PatId { get; set; } = null!;
|
||||
public string PatName { get; set; } = null!;
|
||||
public string? PatType { get; set; }
|
||||
public string? PatUser { get; set; }
|
||||
public DateTime? StartTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
public string Result { get; set; } = null!;
|
||||
public string? Comment { get; set; }
|
||||
|
||||
public virtual ICollection<IaVideoPatrolItemHi> IaVideoPatrolItemHis { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVideoPatrolItem
|
||||
{
|
||||
public string PiId { get; set; } = null!;
|
||||
public string PatId { get; set; } = null!;
|
||||
public string Piname { get; set; } = null!;
|
||||
public int PiseqNo { get; set; }
|
||||
public string ExeObjType { get; set; } = null!;
|
||||
public string ExeObjId { get; set; } = null!;
|
||||
public string? Action { get; set; }
|
||||
public string? ActParam { get; set; }
|
||||
public int DelayBfExe { get; set; }
|
||||
public int DelayAfExe { get; set; }
|
||||
public string IsCompareDiff { get; set; } = null!;
|
||||
public string? BkimgPaths { get; set; }
|
||||
|
||||
public virtual IaVideoPatrol Pat { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class IaVideoPatrolItemHi
|
||||
{
|
||||
public string PatItemHisId { get; set; } = null!;
|
||||
public string PatHisId { get; set; } = null!;
|
||||
public string Piname { get; set; } = null!;
|
||||
public string? Description { get; set; }
|
||||
public DateTime? StartTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
public int PiseqNo { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
public string? PiId { get; set; }
|
||||
public string CompareRet { get; set; } = null!;
|
||||
public string? CompareMsg { get; set; }
|
||||
|
||||
public virtual IaVideoPatrolHi PatHis { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class Im3posSwitch
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string? GndyxdataId { get; set; }
|
||||
public string? GndyxdataName { get; set; }
|
||||
public string? GndykdataId { get; set; }
|
||||
public string? GndykdataName { get; set; }
|
||||
|
||||
public virtual ImGlyph IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAlert201310
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string? StatCode { get; set; }
|
||||
public string? DeviceId { get; set; }
|
||||
public string Alerter { get; set; } = null!;
|
||||
public string AlertType { get; set; } = null!;
|
||||
public string AlertLevel { get; set; } = null!;
|
||||
public string AlertTime { get; set; } = null!;
|
||||
public string TimeSrc { get; set; } = null!;
|
||||
public string Content { get; set; } = null!;
|
||||
public string State { get; set; } = null!;
|
||||
public DateTime RecTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAlertLevel
|
||||
{
|
||||
public ImAlertLevel()
|
||||
{
|
||||
ImAlertTypes = new HashSet<ImAlertType>();
|
||||
ImDeviceYxTmps = new HashSet<ImDeviceYxTmp>();
|
||||
ImDeviceYxes = new HashSet<ImDeviceYx>();
|
||||
ImEventType2010s = new HashSet<ImEventType2010>();
|
||||
ImEventTypes = new HashSet<ImEventType>();
|
||||
}
|
||||
|
||||
public string AlertLevelCode { get; set; } = null!;
|
||||
public string AlertLevelName { get; set; } = null!;
|
||||
public int Color { get; set; }
|
||||
|
||||
public virtual ICollection<ImAlertType> ImAlertTypes { get; set; }
|
||||
public virtual ICollection<ImDeviceYxTmp> ImDeviceYxTmps { get; set; }
|
||||
public virtual ICollection<ImDeviceYx> ImDeviceYxes { get; set; }
|
||||
public virtual ICollection<ImEventType2010> ImEventType2010s { get; set; }
|
||||
public virtual ICollection<ImEventType> ImEventTypes { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAlertState
|
||||
{
|
||||
public string StateCode { get; set; } = null!;
|
||||
public string StateName { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAlertType
|
||||
{
|
||||
public string AlertType { get; set; } = null!;
|
||||
public string? AlertTypeName { get; set; }
|
||||
public string AlertLevel { get; set; } = null!;
|
||||
|
||||
public virtual ImAlertLevel AlertLevelNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAnalogData2010
|
||||
{
|
||||
public string DeviceCtgy { get; set; } = null!;
|
||||
public int DataCode { get; set; }
|
||||
public string DataName { get; set; } = null!;
|
||||
public string? Sym1 { get; set; }
|
||||
public double Cof1 { get; set; }
|
||||
public int Precise1 { get; set; }
|
||||
public string? Sym2 { get; set; }
|
||||
public double Cof2 { get; set; }
|
||||
public int Precise2 { get; set; }
|
||||
public string? EnumStr { get; set; }
|
||||
|
||||
public virtual ImDevCtgy DeviceCtgyNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAnalogData20102
|
||||
{
|
||||
public int PuctgyCode { get; set; }
|
||||
public int DataCode { get; set; }
|
||||
public string DataName { get; set; } = null!;
|
||||
public string? Sym1 { get; set; }
|
||||
public double Cof1 { get; set; }
|
||||
public int Precise1 { get; set; }
|
||||
public string? Sym2 { get; set; }
|
||||
public double Cof2 { get; set; }
|
||||
public int Precise2 { get; set; }
|
||||
public string? EnumStr { get; set; }
|
||||
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAsdu140FltActType
|
||||
{
|
||||
public string CompanyName { get; set; } = null!;
|
||||
public int PuctgyCode { get; set; }
|
||||
public int ActCode { get; set; }
|
||||
public string ActName { get; set; } = null!;
|
||||
|
||||
public virtual ImManufacturer CompanyNameNavigation { get; set; } = null!;
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAsdu140FltCurrInfo
|
||||
{
|
||||
public string CompanyName { get; set; } = null!;
|
||||
public int CurrIndCode { get; set; }
|
||||
public string CurrName { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public int Precise { get; set; }
|
||||
public double Coeff { get; set; }
|
||||
|
||||
public virtual ImManufacturer CompanyNameNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAsdu142info
|
||||
{
|
||||
public string CompanyName { get; set; } = null!;
|
||||
public string ValueType { get; set; } = null!;
|
||||
public int ValueIndex { get; set; }
|
||||
public string ValueName { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public int Precise { get; set; }
|
||||
public double Coeff { get; set; }
|
||||
public string ParseMode { get; set; } = null!;
|
||||
public string? ParseFormat { get; set; }
|
||||
|
||||
public virtual ImManufacturer CompanyNameNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAutoReport
|
||||
{
|
||||
public ImAutoReport()
|
||||
{
|
||||
ImAutoReportItems = new HashSet<ImAutoReportItem>();
|
||||
}
|
||||
|
||||
public string RptId { get; set; } = null!;
|
||||
public string RptName { get; set; } = null!;
|
||||
public string RptType { get; set; } = null!;
|
||||
public string? TempFileObjId { get; set; }
|
||||
public string? SavePath { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
public virtual ICollection<ImAutoReportItem> ImAutoReportItems { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImAutoReportItem
|
||||
{
|
||||
public string ItemId { get; set; } = null!;
|
||||
public string RptId { get; set; } = null!;
|
||||
public int RowNo { get; set; }
|
||||
public int ColNo { get; set; }
|
||||
public string ItemType { get; set; } = null!;
|
||||
public string DataType { get; set; } = null!;
|
||||
public string? DataId { get; set; }
|
||||
public string? DataName { get; set; }
|
||||
public string? Time1 { get; set; }
|
||||
public string? Time2 { get; set; }
|
||||
public string? TimeCell { get; set; }
|
||||
public string? Unit { get; set; }
|
||||
public string ShowUnit { get; set; } = null!;
|
||||
|
||||
public virtual ImAutoReport Rpt { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImBreakerNoEnum
|
||||
{
|
||||
public int PuctgyCode { get; set; }
|
||||
public int EnumIndex { get; set; }
|
||||
public string EnumName { get; set; } = null!;
|
||||
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImCtrlWordDef
|
||||
{
|
||||
public int TypeId { get; set; }
|
||||
public string? TypeComment { get; set; }
|
||||
public string? Bit1Meanings { get; set; }
|
||||
public string? Bit2Meanings { get; set; }
|
||||
public string? Bit3Meanings { get; set; }
|
||||
public string? Bit4Meanings { get; set; }
|
||||
public string? Bit5Meanings { get; set; }
|
||||
public string? Bit6Meanings { get; set; }
|
||||
public string? Bit7Meanings { get; set; }
|
||||
public string? Bit8Meanings { get; set; }
|
||||
public string? Bit9Meanings { get; set; }
|
||||
public string? Bit10Meanings { get; set; }
|
||||
public string? Bit11Meanings { get; set; }
|
||||
public string? Bit12Meanings { get; set; }
|
||||
public string? Bit13Meanings { get; set; }
|
||||
public string? Bit14Meanings { get; set; }
|
||||
public string? Bit15Meanings { get; set; }
|
||||
public string? Bit16Meanings { get; set; }
|
||||
public string Manufacturer { get; set; } = null!;
|
||||
public string? Bit17Meanings { get; set; }
|
||||
public string? Bit18Meanings { get; set; }
|
||||
public string? Bit19Meanings { get; set; }
|
||||
public string? Bit20Meanings { get; set; }
|
||||
public string? Bit21Meanings { get; set; }
|
||||
public string? Bit22Meanings { get; set; }
|
||||
public string? Bit23Meanings { get; set; }
|
||||
public string? Bit24Meanings { get; set; }
|
||||
public string? Bit25Meanings { get; set; }
|
||||
public string? Bit26Meanings { get; set; }
|
||||
public string? Bit27Meanings { get; set; }
|
||||
public string? Bit28Meanings { get; set; }
|
||||
public string? Bit29Meanings { get; set; }
|
||||
public string? Bit30Meanings { get; set; }
|
||||
public string? Bit31Meanings { get; set; }
|
||||
public string? Bit32Meanings { get; set; }
|
||||
|
||||
public virtual ImManufacturer ManufacturerNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
25
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImCurve.cs
Normal file
25
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImCurve.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImCurve
|
||||
{
|
||||
public ImCurve()
|
||||
{
|
||||
ImCurveItems = new HashSet<ImCurveItem>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string CurveType { get; set; } = null!;
|
||||
public string CurveName { get; set; } = null!;
|
||||
public int Minutes { get; set; }
|
||||
public double Ymax { get; set; }
|
||||
public double Ymin { get; set; }
|
||||
public int Sampling { get; set; }
|
||||
public DateTime CreTime { get; set; }
|
||||
|
||||
public virtual ImCurveType CurveTypeNavigation { get; set; } = null!;
|
||||
public virtual ICollection<ImCurveItem> ImCurveItems { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImCurveItem
|
||||
{
|
||||
public string CurveId { get; set; } = null!;
|
||||
public string DataId { get; set; } = null!;
|
||||
public int? LineColor { get; set; }
|
||||
public int? LineWidth { get; set; }
|
||||
|
||||
public virtual ImCurve Curve { get; set; } = null!;
|
||||
public virtual ImDeviceDatum Data { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImCurveType
|
||||
{
|
||||
public ImCurveType()
|
||||
{
|
||||
ImCurves = new HashSet<ImCurve>();
|
||||
}
|
||||
|
||||
public string CveTypeCode { get; set; } = null!;
|
||||
public string CveTypeName { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<ImCurve> ImCurves { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDataViewer
|
||||
{
|
||||
public ImDataViewer()
|
||||
{
|
||||
ImDataViewerData = new HashSet<ImDataViewerDatum>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public int ColCnt { get; set; }
|
||||
public int ValueColWidth { get; set; }
|
||||
public short? NameCharSet { get; set; }
|
||||
public int? NameColor { get; set; }
|
||||
public string? NameFontName { get; set; }
|
||||
public short? NameSize { get; set; }
|
||||
public short? NameBold { get; set; }
|
||||
public short? NameItalic { get; set; }
|
||||
public short? NameStrikeout { get; set; }
|
||||
public short? NameUnderLine { get; set; }
|
||||
public short? ValueCharSet { get; set; }
|
||||
public int? ValueColor { get; set; }
|
||||
public string? ValueFontName { get; set; }
|
||||
public short? ValueSize { get; set; }
|
||||
public short? ValueBold { get; set; }
|
||||
public short? ValueItalic { get; set; }
|
||||
public short? ValueStrikeout { get; set; }
|
||||
public short? ValueUnderLine { get; set; }
|
||||
|
||||
public virtual ImGlyph IdNavigation { get; set; } = null!;
|
||||
public virtual ICollection<ImDataViewerDatum> ImDataViewerData { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDataViewerDatum
|
||||
{
|
||||
public string DataViewerId { get; set; } = null!;
|
||||
public string DataId { get; set; } = null!;
|
||||
public int SeqNo { get; set; }
|
||||
|
||||
public virtual ImDataViewer DataViewer { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDevCtgy
|
||||
{
|
||||
public ImDevCtgy()
|
||||
{
|
||||
ImAnalogData2010s = new HashSet<ImAnalogData2010>();
|
||||
ImEventFlags = new HashSet<ImEventFlag>();
|
||||
ImEventParams = new HashSet<ImEventParam>();
|
||||
ImEventType2010s = new HashSet<ImEventType2010>();
|
||||
ImFaultType2010s = new HashSet<ImFaultType2010>();
|
||||
ImPuCtgies = new HashSet<ImPuCtgy>();
|
||||
}
|
||||
|
||||
public string DevCtgyCode { get; set; } = null!;
|
||||
public string DevCtgyName { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<ImAnalogData2010> ImAnalogData2010s { get; set; }
|
||||
public virtual ICollection<ImEventFlag> ImEventFlags { get; set; }
|
||||
public virtual ICollection<ImEventParam> ImEventParams { get; set; }
|
||||
public virtual ICollection<ImEventType2010> ImEventType2010s { get; set; }
|
||||
public virtual ICollection<ImFaultType2010> ImFaultType2010s { get; set; }
|
||||
public virtual ICollection<ImPuCtgy> ImPuCtgies { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceActRule
|
||||
{
|
||||
public string RuleId { get; set; } = null!;
|
||||
public string DataId { get; set; } = null!;
|
||||
public int SeqNo { get; set; }
|
||||
public string LogicExpr { get; set; } = null!;
|
||||
public string LogicValue { get; set; } = null!;
|
||||
public string ActType { get; set; } = null!;
|
||||
public string? ActParam { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
|
||||
public virtual ImDeviceDatum Data { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceActRuleTmp
|
||||
{
|
||||
public string RuleId { get; set; } = null!;
|
||||
public string DataId { get; set; } = null!;
|
||||
public int SeqNo { get; set; }
|
||||
public string LogicExpr { get; set; } = null!;
|
||||
public string LogicValue { get; set; } = null!;
|
||||
public string ActType { get; set; } = null!;
|
||||
public string? ActParam { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
|
||||
public virtual ImDeviceDataTmp Data { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDataTmp
|
||||
{
|
||||
public ImDeviceDataTmp()
|
||||
{
|
||||
ImDeviceActRuleTmps = new HashSet<ImDeviceActRuleTmp>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public string DataType { get; set; } = null!;
|
||||
public string DataName { get; set; } = null!;
|
||||
public int CpuIndex { get; set; }
|
||||
public int InfoAddr { get; set; }
|
||||
public int AutoSave { get; set; }
|
||||
public int Visible { get; set; }
|
||||
public int? ToScada { get; set; }
|
||||
public int? SecAddr101 { get; set; }
|
||||
public int? CfgFileBz { get; set; }
|
||||
public string? BeiZhu { get; set; }
|
||||
public string Domain { get; set; } = null!;
|
||||
|
||||
public virtual ImProtectDeviceTmp Device { get; set; } = null!;
|
||||
public virtual ImDeviceVaTmp? ImDeviceVaTmp { get; set; }
|
||||
public virtual ImDeviceYcTmp? ImDeviceYcTmp { get; set; }
|
||||
public virtual ImDeviceYkTmp? ImDeviceYkTmp { get; set; }
|
||||
public virtual ImDeviceYmTmp? ImDeviceYmTmp { get; set; }
|
||||
public virtual ImDeviceYxTmp? ImDeviceYxTmp { get; set; }
|
||||
public virtual ICollection<ImDeviceActRuleTmp> ImDeviceActRuleTmps { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
using Abp.Domain.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDatum : Entity<string>
|
||||
{
|
||||
public ImDeviceDatum()
|
||||
{
|
||||
ImCurveItems = new HashSet<ImCurveItem>();
|
||||
ImDeviceActRules = new HashSet<ImDeviceActRule>();
|
||||
ImReportCfgData = new HashSet<ImReportCfgDatum>();
|
||||
}
|
||||
|
||||
//public string Id { get; set; } = null!;
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public string DataType { get; set; } = null!;
|
||||
public string DataName { get; set; } = null!;
|
||||
public int CpuIndex { get; set; }
|
||||
public int InfoAddr { get; set; }
|
||||
public int AutoSave { get; set; }
|
||||
public int Visible { get; set; }
|
||||
public string? BeiZhu { get; set; }
|
||||
public string? SrcTempDataId { get; set; }
|
||||
public string Domain { get; set; } = null!;
|
||||
|
||||
public virtual ImProtectDevice Device { get; set; } = null!;
|
||||
public virtual ImDeviceVa? ImDeviceVa { get; set; }
|
||||
public virtual ImDeviceYc? ImDeviceYc { get; set; }
|
||||
public virtual ImDeviceYk? ImDeviceYk { get; set; }
|
||||
public virtual ImDeviceYm? ImDeviceYm { get; set; }
|
||||
public virtual ImDeviceYx? ImDeviceYx { get; set; }
|
||||
public virtual ImSheBeiDeviceDatum? ImSheBeiDeviceDatum { get; set; }
|
||||
public virtual ICollection<ImCurveItem> ImCurveItems { get; set; }
|
||||
public virtual ICollection<ImDeviceActRule> ImDeviceActRules { get; set; }
|
||||
public virtual ICollection<ImReportCfgDatum> ImReportCfgData { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDz
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public int CpuIndex { get; set; }
|
||||
public int DzIndex { get; set; }
|
||||
public string? DzName { get; set; }
|
||||
public string? DzComment { get; set; }
|
||||
public string? DzRange { get; set; }
|
||||
public double? DzMin { get; set; }
|
||||
public double? DzMax { get; set; }
|
||||
public string? DzUnit { get; set; }
|
||||
public double? DzCoeff { get; set; }
|
||||
public int? DzPrecise { get; set; }
|
||||
public string? DzUnit1 { get; set; }
|
||||
public double? DzCoeff1 { get; set; }
|
||||
public int? DzPrecise1 { get; set; }
|
||||
public int? CtrlWordTypeId { get; set; }
|
||||
public int DzType { get; set; }
|
||||
public int? EnumTypeId { get; set; }
|
||||
public double? DzUnitCvtCoeff { get; set; }
|
||||
public string? RelatePtId { get; set; }
|
||||
public string? RelateCtId { get; set; }
|
||||
public int ReadOnly { get; set; }
|
||||
public string Hidden { get; set; } = null!;
|
||||
|
||||
public virtual ImProtectDevice Device { get; set; } = null!;
|
||||
public virtual ImDztype DzTypeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDzTmp
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public int CpuIndex { get; set; }
|
||||
public int DzIndex { get; set; }
|
||||
public string? DzName { get; set; }
|
||||
public string? DzComment { get; set; }
|
||||
public string? DzRange { get; set; }
|
||||
public double? DzMin { get; set; }
|
||||
public double? DzMax { get; set; }
|
||||
public string? DzUnit { get; set; }
|
||||
public double? DzCoeff { get; set; }
|
||||
public int? DzPrecise { get; set; }
|
||||
public string? DzUnit1 { get; set; }
|
||||
public double? DzCoeff1 { get; set; }
|
||||
public int? DzPrecise1 { get; set; }
|
||||
public int? CtrlWordTypeId { get; set; }
|
||||
public int? DzType { get; set; }
|
||||
public int? EnumTypeId { get; set; }
|
||||
public double? DzUnitCvtCoeff { get; set; }
|
||||
public string? RelatePtId { get; set; }
|
||||
public string? RelateCtId { get; set; }
|
||||
public int ReadOnly { get; set; }
|
||||
public string Hidden { get; set; } = null!;
|
||||
|
||||
public virtual ImProtectDeviceTmp Device { get; set; } = null!;
|
||||
public virtual ImDztype? DzTypeNavigation { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDzenum
|
||||
{
|
||||
public int EnumTypeId { get; set; }
|
||||
public int EnumIndex { get; set; }
|
||||
public string? EnumComment { get; set; }
|
||||
public string Manufacturer { get; set; } = null!;
|
||||
|
||||
public virtual ImManufacturer ManufacturerNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDzenum2
|
||||
{
|
||||
public int EnumTypeId { get; set; }
|
||||
public string EnumByte { get; set; } = null!;
|
||||
public int EnumIndex { get; set; }
|
||||
public string? EnumComment { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceDzenumPu
|
||||
{
|
||||
public int PuctgyCode { get; set; }
|
||||
public int EnumTypeId { get; set; }
|
||||
public int EnumIndex { get; set; }
|
||||
public string? EnumComment { get; set; }
|
||||
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceVa
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Vaname { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public string? Expr { get; set; }
|
||||
|
||||
public virtual ImDeviceDatum IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceVaTmp
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Vaname { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public string? Expr { get; set; }
|
||||
|
||||
public virtual ImDeviceDataTmp IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYc
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Ycname { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public double? Cof { get; set; }
|
||||
public int? Precise { get; set; }
|
||||
public double? UpLimit { get; set; }
|
||||
public double? DownLimit { get; set; }
|
||||
public double? Intl4Save { get; set; }
|
||||
public string? Unit2 { get; set; }
|
||||
public double? Cof2 { get; set; }
|
||||
public int? Precise2 { get; set; }
|
||||
public string SaveMode { get; set; } = null!;
|
||||
public double? UpLimit4Stat { get; set; }
|
||||
|
||||
public virtual ImDeviceDatum IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYcTmp
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Ycname { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public double? Cof { get; set; }
|
||||
public int? Precise { get; set; }
|
||||
public double? UpLimit { get; set; }
|
||||
public double? DownLimit { get; set; }
|
||||
public double? Intl4Save { get; set; }
|
||||
public string? Unit2 { get; set; }
|
||||
public double? Cof2 { get; set; }
|
||||
public int? Precise2 { get; set; }
|
||||
public string SaveMode { get; set; } = null!;
|
||||
public double? UpLimit4Stat { get; set; }
|
||||
|
||||
public virtual ImDeviceDataTmp IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYk
|
||||
{
|
||||
public ImDeviceYk()
|
||||
{
|
||||
ImProgControlItems = new HashSet<ImProgControlItem>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string Ykname { get; set; } = null!;
|
||||
public string? RelatedYxId { get; set; }
|
||||
public string YkType { get; set; } = null!;
|
||||
public string? SwOnStr { get; set; }
|
||||
public string? SwOffStr { get; set; }
|
||||
public string? SwUncertStr { get; set; }
|
||||
public string? PreYxId { get; set; }
|
||||
public int? PreState4Yk { get; set; }
|
||||
public string LockMode { get; set; } = null!;
|
||||
public string IsResetCmd { get; set; } = null!;
|
||||
public string? PreYxIdOff { get; set; }
|
||||
public int? PreState4YkOff { get; set; }
|
||||
public string LockModeOff { get; set; } = null!;
|
||||
|
||||
public virtual ImDeviceDatum IdNavigation { get; set; } = null!;
|
||||
public virtual ImNoticeBoard? ImNoticeBoard { get; set; }
|
||||
public virtual ICollection<ImProgControlItem> ImProgControlItems { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYkTmp
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Ykname { get; set; } = null!;
|
||||
public string? RelatedYxId { get; set; }
|
||||
public string YkType { get; set; } = null!;
|
||||
public string? SwOnStr { get; set; }
|
||||
public string? SwOffStr { get; set; }
|
||||
public string? SwUncertStr { get; set; }
|
||||
public string? PreYxId { get; set; }
|
||||
public int? PreState4Yk { get; set; }
|
||||
public string LockMode { get; set; } = null!;
|
||||
public string IsResetCmd { get; set; } = null!;
|
||||
public string? PreYxIdOff { get; set; }
|
||||
public int? PreState4YkOff { get; set; }
|
||||
public string LockModeOff { get; set; } = null!;
|
||||
|
||||
public virtual ImDeviceDataTmp IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYm
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Ymname { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public double? Cof { get; set; }
|
||||
public double? MaxValue { get; set; }
|
||||
|
||||
public virtual ImDeviceDatum IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYmTmp
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Ymname { get; set; } = null!;
|
||||
public string? Unit { get; set; }
|
||||
public double? Cof { get; set; }
|
||||
public double? MaxValue { get; set; }
|
||||
|
||||
public virtual ImDeviceDataTmp IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYx
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Yxname { get; set; } = null!;
|
||||
public string? YxType { get; set; }
|
||||
public string? SwOnStr { get; set; }
|
||||
public string? SwOffStr { get; set; }
|
||||
public string? SwUncertStr { get; set; }
|
||||
public string AlertLevel { get; set; } = null!;
|
||||
public string NormalState { get; set; } = null!;
|
||||
|
||||
public virtual ImAlertLevel AlertLevelNavigation { get; set; } = null!;
|
||||
public virtual ImDeviceDatum IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYxSrcDevice
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string YxdataId { get; set; } = null!;
|
||||
public string SrcDevId { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDeviceYxTmp
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Yxname { get; set; } = null!;
|
||||
public string? YxType { get; set; }
|
||||
public string? SwOnStr { get; set; }
|
||||
public string? SwOffStr { get; set; }
|
||||
public string? SwUncertStr { get; set; }
|
||||
public string AlertLevel { get; set; } = null!;
|
||||
public string NormalState { get; set; } = null!;
|
||||
|
||||
public virtual ImAlertLevel AlertLevelNavigation { get; set; } = null!;
|
||||
public virtual ImDeviceDataTmp IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDiagram
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string PrjId { get; set; } = null!;
|
||||
public int? Width { get; set; }
|
||||
public int? Height { get; set; }
|
||||
public int? GridSize { get; set; }
|
||||
public short? ShowGrid { get; set; }
|
||||
public double? Scale { get; set; }
|
||||
public int? PwrOnColor { get; set; }
|
||||
public int? PwrOffColor { get; set; }
|
||||
public int? SwitchOnColor { get; set; }
|
||||
public int? SwitchOffColor { get; set; }
|
||||
public int? SwitchUnknownColor { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string? Creator { get; set; }
|
||||
|
||||
public virtual ImGlyph IdNavigation { get; set; } = null!;
|
||||
public virtual ImProject Prj { get; set; } = null!;
|
||||
}
|
||||
}
|
20
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImDztype.cs
Normal file
20
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImDztype.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImDztype
|
||||
{
|
||||
public ImDztype()
|
||||
{
|
||||
ImDeviceDzTmps = new HashSet<ImDeviceDzTmp>();
|
||||
ImDeviceDzs = new HashSet<ImDeviceDz>();
|
||||
}
|
||||
|
||||
public int DztypeId { get; set; }
|
||||
public string Dztype { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<ImDeviceDzTmp> ImDeviceDzTmps { get; set; }
|
||||
public virtual ICollection<ImDeviceDz> ImDeviceDzs { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImEventFlag
|
||||
{
|
||||
public string DeviceCtgy { get; set; } = null!;
|
||||
public int EvtFlagCode { get; set; }
|
||||
public string Param1Mean { get; set; } = null!;
|
||||
public string? Param1Sym { get; set; }
|
||||
public string? Param1ValueType { get; set; }
|
||||
public string Param2Mean { get; set; } = null!;
|
||||
public string? Param2Sym { get; set; }
|
||||
public string? Param2ValueType { get; set; }
|
||||
public string? Param3Mean { get; set; }
|
||||
public string? Param3Sym { get; set; }
|
||||
public string? Param3ValueType { get; set; }
|
||||
|
||||
public virtual ImDevCtgy DeviceCtgyNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImEventParam
|
||||
{
|
||||
public string DeviceCtgy { get; set; } = null!;
|
||||
public int ParamValue { get; set; }
|
||||
public string ParamDesc { get; set; } = null!;
|
||||
|
||||
public virtual ImDevCtgy DeviceCtgyNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImEventType
|
||||
{
|
||||
public int EvtCode { get; set; }
|
||||
public int PuctgyCode { get; set; }
|
||||
public string EvtName { get; set; } = null!;
|
||||
public string AlertLevel { get; set; } = null!;
|
||||
public string IsYiCiSb { get; set; } = null!;
|
||||
|
||||
public virtual ImAlertLevel AlertLevelNavigation { get; set; } = null!;
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImEventType2010
|
||||
{
|
||||
public string DeviceCtgy { get; set; } = null!;
|
||||
public int EvtCode { get; set; }
|
||||
public string EvtName { get; set; } = null!;
|
||||
public string AlertLevel { get; set; } = null!;
|
||||
|
||||
public virtual ImAlertLevel AlertLevelNavigation { get; set; } = null!;
|
||||
public virtual ImDevCtgy DeviceCtgyNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImEventType2010DeviceYktmp
|
||||
{
|
||||
public string RecId { get; set; } = null!;
|
||||
public string DeviceCtgy { get; set; } = null!;
|
||||
public int EvtCode { get; set; }
|
||||
public string YktmpId { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultActType
|
||||
{
|
||||
public int ActCode { get; set; }
|
||||
public int FaultCode { get; set; }
|
||||
public string ActName { get; set; } = null!;
|
||||
|
||||
public virtual ImFaultType FaultCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultActType2010
|
||||
{
|
||||
public string FltTypeId { get; set; } = null!;
|
||||
public int ActCode { get; set; }
|
||||
public string ActName { get; set; } = null!;
|
||||
|
||||
public virtual ImFaultType2010 FltType { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultActType20102
|
||||
{
|
||||
public int PuctgyCode { get; set; }
|
||||
public int ActCode { get; set; }
|
||||
public string ActName { get; set; } = null!;
|
||||
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultActTypePd
|
||||
{
|
||||
public int ActCode { get; set; }
|
||||
public int FaultCode { get; set; }
|
||||
public string ActName { get; set; } = null!;
|
||||
|
||||
public virtual ImFaultTypePd FaultCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultParam
|
||||
{
|
||||
public int ParamCode { get; set; }
|
||||
public string ParamName { get; set; } = null!;
|
||||
public string? ParamSym1 { get; set; }
|
||||
public double ParamCof1 { get; set; }
|
||||
public string? ParamSym2 { get; set; }
|
||||
public double ParamCof2 { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultParamPd
|
||||
{
|
||||
public int ParamCode { get; set; }
|
||||
public int FaultCode { get; set; }
|
||||
public string ParamName { get; set; } = null!;
|
||||
public string? ParamSym1 { get; set; }
|
||||
public double? ParamCof1 { get; set; }
|
||||
public string? ParamSym2 { get; set; }
|
||||
public double? ParamCof2 { get; set; }
|
||||
|
||||
public virtual ImFaultTypePd FaultCodeNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultReportItem
|
||||
{
|
||||
public ImFaultReportItem()
|
||||
{
|
||||
ImPuctgyFltRptItems = new HashSet<ImPuctgyFltRptItem>();
|
||||
}
|
||||
|
||||
public string ItemName { get; set; } = null!;
|
||||
public int SeqNo { get; set; }
|
||||
|
||||
public virtual ICollection<ImPuctgyFltRptItem> ImPuctgyFltRptItems { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultType
|
||||
{
|
||||
public ImFaultType()
|
||||
{
|
||||
ImFaultActTypes = new HashSet<ImFaultActType>();
|
||||
}
|
||||
|
||||
public int FaultCode { get; set; }
|
||||
public string FaultName { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<ImFaultActType> ImFaultActTypes { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultType2010
|
||||
{
|
||||
public ImFaultType2010()
|
||||
{
|
||||
ImFaultActType2010s = new HashSet<ImFaultActType2010>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string DeviceCtgy { get; set; } = null!;
|
||||
public int FaultCode { get; set; }
|
||||
public string FaultName { get; set; } = null!;
|
||||
|
||||
public virtual ImDevCtgy DeviceCtgyNavigation { get; set; } = null!;
|
||||
public virtual ICollection<ImFaultActType2010> ImFaultActType2010s { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFaultTypePd
|
||||
{
|
||||
public ImFaultTypePd()
|
||||
{
|
||||
ImFaultActTypePds = new HashSet<ImFaultActTypePd>();
|
||||
ImFaultParamPds = new HashSet<ImFaultParamPd>();
|
||||
}
|
||||
|
||||
public int FaultCode { get; set; }
|
||||
public string FaultName { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<ImFaultActTypePd> ImFaultActTypePds { get; set; }
|
||||
public virtual ICollection<ImFaultParamPd> ImFaultParamPds { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFltDistDevGrp
|
||||
{
|
||||
public ImFltDistDevGrp()
|
||||
{
|
||||
ImFltDistDevices = new HashSet<ImFltDistDevice>();
|
||||
ImFltDistParams = new HashSet<ImFltDistParam>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string GrpName { get; set; } = null!;
|
||||
public string PrjId { get; set; } = null!;
|
||||
|
||||
public virtual ImProject Prj { get; set; } = null!;
|
||||
public virtual ICollection<ImFltDistDevice> ImFltDistDevices { get; set; }
|
||||
public virtual ICollection<ImFltDistParam> ImFltDistParams { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFltDistDevice
|
||||
{
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public string GrpId { get; set; } = null!;
|
||||
public int SeqNo { get; set; }
|
||||
public string TypeInGrp { get; set; } = null!;
|
||||
|
||||
public virtual ImProtectDevice Device { get; set; } = null!;
|
||||
public virtual ImFltDistDevGrp Grp { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFltDistParam
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string GrpId { get; set; } = null!;
|
||||
public string ParamType { get; set; } = null!;
|
||||
public int SectionNo { get; set; }
|
||||
public int NodeNo { get; set; }
|
||||
public double Value { get; set; }
|
||||
|
||||
public virtual ImFltDistDevGrp Grp { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImFxcurrAbnormalSet
|
||||
{
|
||||
public string YcdataId1 { get; set; } = null!;
|
||||
public string YcdataId2 { get; set; } = null!;
|
||||
public double DeltaI { get; set; }
|
||||
public int DeltaT { get; set; }
|
||||
public int DeltaTofYc { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImGateWay
|
||||
{
|
||||
public ImGateWay()
|
||||
{
|
||||
ImProtectDevices = new HashSet<ImProtectDevice>();
|
||||
}
|
||||
|
||||
public string GateWayId { get; set; } = null!;
|
||||
public string GateWayName { get; set; } = null!;
|
||||
public int PhyAddr { get; set; }
|
||||
public string StatCode { get; set; } = null!;
|
||||
public string? GatewayIp1 { get; set; }
|
||||
public int? GatewayPort1 { get; set; }
|
||||
public string? GatewayIp2 { get; set; }
|
||||
public int? GatewayPort2 { get; set; }
|
||||
public string? Protocol { get; set; }
|
||||
|
||||
public virtual ImStation StatCodeNavigation { get; set; } = null!;
|
||||
public virtual ICollection<ImProtectDevice> ImProtectDevices { get; set; }
|
||||
}
|
||||
}
|
49
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImGlyph.cs
Normal file
49
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImGlyph.cs
Normal file
@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImGlyph
|
||||
{
|
||||
public ImGlyph()
|
||||
{
|
||||
ImGlyphHots = new HashSet<ImGlyphHot>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string? ParentId { get; set; }
|
||||
public string DiagId { get; set; } = null!;
|
||||
public int GlyphType { get; set; }
|
||||
public double? Left { get; set; }
|
||||
public double? Top { get; set; }
|
||||
public double? Right { get; set; }
|
||||
public double? Bottom { get; set; }
|
||||
public short? LineWidth { get; set; }
|
||||
public int? LineColor { get; set; }
|
||||
public int? BkColor { get; set; }
|
||||
public short? LineStyle { get; set; }
|
||||
public short? Transparent { get; set; }
|
||||
public short? Direction { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public short? ZOrder { get; set; }
|
||||
public short? State { get; set; }
|
||||
public string? LinkDiagId { get; set; }
|
||||
public int? PwrOnColor { get; set; }
|
||||
public int? PwrOffColor { get; set; }
|
||||
public int? SwitchOnColor { get; set; }
|
||||
public int? SwitchOffColor { get; set; }
|
||||
public int? SwitchUnknownColor { get; set; }
|
||||
public int? Locked { get; set; }
|
||||
public double? PwrOnThreshold { get; set; }
|
||||
public string? Reserved1 { get; set; }
|
||||
public string? Reserved2 { get; set; }
|
||||
|
||||
public virtual Im3posSwitch? Im3posSwitch { get; set; }
|
||||
public virtual ImDataViewer? ImDataViewer { get; set; }
|
||||
public virtual ImDiagram? ImDiagram { get; set; }
|
||||
public virtual ImGlyphDevDatum? ImGlyphDevDatum { get; set; }
|
||||
public virtual ImGrid? ImGrid { get; set; }
|
||||
public virtual ImLabel? ImLabel { get; set; }
|
||||
public virtual ICollection<ImGlyphHot> ImGlyphHots { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImGlyphDefProp
|
||||
{
|
||||
public int GlyphType { get; set; }
|
||||
public string GlyphName { get; set; } = null!;
|
||||
public double? Width { get; set; }
|
||||
public double? Height { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImGlyphDevDatum
|
||||
{
|
||||
public string GlyphId { get; set; } = null!;
|
||||
public string? MeasureDataId { get; set; }
|
||||
public string? MeasureDataName { get; set; }
|
||||
public string? ControlDataId { get; set; }
|
||||
public string? ControlDataName { get; set; }
|
||||
|
||||
public virtual ImGlyph Glyph { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImGlyphHot
|
||||
{
|
||||
public string GlyphId { get; set; } = null!;
|
||||
public short HotIndex { get; set; }
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
public short HotType { get; set; }
|
||||
public string? ConnectedGlyph { get; set; }
|
||||
|
||||
public virtual ImGlyph Glyph { get; set; } = null!;
|
||||
}
|
||||
}
|
14
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImGrid.cs
Normal file
14
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImGrid.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImGrid
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public int RowCnt { get; set; }
|
||||
public int ColCnt { get; set; }
|
||||
|
||||
public virtual ImGlyph IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
21
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImLabel.cs
Normal file
21
CodeFirstExistingDatabaseSample/ISMS_BASE.Models/ImLabel.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImLabel
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public short? FCharSet { get; set; }
|
||||
public int? FColor { get; set; }
|
||||
public string? FName { get; set; }
|
||||
public short? FSize { get; set; }
|
||||
public short? FBold { get; set; }
|
||||
public short? FItalic { get; set; }
|
||||
public short? FStrikeout { get; set; }
|
||||
public short? FUnderLine { get; set; }
|
||||
public string? Caption { get; set; }
|
||||
|
||||
public virtual ImGlyph IdNavigation { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImLinkage
|
||||
{
|
||||
public string LnkId { get; set; } = null!;
|
||||
public string SrcObjId { get; set; } = null!;
|
||||
public string SrcObjType { get; set; } = null!;
|
||||
public string LnkType { get; set; } = null!;
|
||||
public string Resource { get; set; } = null!;
|
||||
public string? Action { get; set; }
|
||||
public string? ActParam { get; set; }
|
||||
public string State { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImManufacturer
|
||||
{
|
||||
public ImManufacturer()
|
||||
{
|
||||
ImAsdu140FltActTypes = new HashSet<ImAsdu140FltActType>();
|
||||
ImAsdu140FltCurrInfos = new HashSet<ImAsdu140FltCurrInfo>();
|
||||
ImAsdu142infos = new HashSet<ImAsdu142info>();
|
||||
ImCtrlWordDefs = new HashSet<ImCtrlWordDef>();
|
||||
ImDeviceDzenums = new HashSet<ImDeviceDzenum>();
|
||||
ImPuCtgies = new HashSet<ImPuCtgy>();
|
||||
}
|
||||
|
||||
public string ManuCode { get; set; } = null!;
|
||||
public string ManuName { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<ImAsdu140FltActType> ImAsdu140FltActTypes { get; set; }
|
||||
public virtual ICollection<ImAsdu140FltCurrInfo> ImAsdu140FltCurrInfos { get; set; }
|
||||
public virtual ICollection<ImAsdu142info> ImAsdu142infos { get; set; }
|
||||
public virtual ICollection<ImCtrlWordDef> ImCtrlWordDefs { get; set; }
|
||||
public virtual ICollection<ImDeviceDzenum> ImDeviceDzenums { get; set; }
|
||||
public virtual ICollection<ImPuCtgy> ImPuCtgies { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImNoticeBoard
|
||||
{
|
||||
public string NbId { get; set; } = null!;
|
||||
public string StatCode { get; set; } = null!;
|
||||
public string YkId { get; set; } = null!;
|
||||
public string? Description { get; set; }
|
||||
public string OperUserName { get; set; } = null!;
|
||||
public string? OperWholeName { get; set; }
|
||||
public DateTime ExecuteTime { get; set; }
|
||||
|
||||
public virtual ImStation StatCodeNavigation { get; set; } = null!;
|
||||
public virtual ImDeviceYk Yk { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImNotifyTask
|
||||
{
|
||||
public ImNotifyTask()
|
||||
{
|
||||
ImNotifyTaskAlertObjs = new HashSet<ImNotifyTaskAlertObj>();
|
||||
ImNotifyTaskPhones = new HashSet<ImNotifyTaskPhone>();
|
||||
}
|
||||
|
||||
public string TaskId { get; set; } = null!;
|
||||
public string AlertType { get; set; } = null!;
|
||||
public string TaskDesc { get; set; } = null!;
|
||||
|
||||
public virtual TbNotifyTask Task { get; set; } = null!;
|
||||
public virtual ICollection<ImNotifyTaskAlertObj> ImNotifyTaskAlertObjs { get; set; }
|
||||
public virtual ICollection<ImNotifyTaskPhone> ImNotifyTaskPhones { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImNotifyTaskAlertObj
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string TaskId { get; set; } = null!;
|
||||
public string? AlertObjId { get; set; }
|
||||
public string? AlertObjName { get; set; }
|
||||
|
||||
public virtual ImNotifyTask Task { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImNotifyTaskPhone
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string TaskId { get; set; } = null!;
|
||||
public string PhoneNo { get; set; } = null!;
|
||||
public string? FullName { get; set; }
|
||||
|
||||
public virtual ImNotifyTask Task { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImNotifyTaskTemplate
|
||||
{
|
||||
public string AlertType { get; set; } = null!;
|
||||
public string Sql4notify { get; set; } = null!;
|
||||
public string BusiTabName { get; set; } = null!;
|
||||
public string PkfldName { get; set; } = null!;
|
||||
public string Sql4phoneNo { get; set; } = null!;
|
||||
public string Sql4msg { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImOnlineAnalysis
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Method { get; set; } = null!;
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public string? DataIdofC2h2 { get; set; }
|
||||
public string? DataIdofC2h4 { get; set; }
|
||||
public string? DataIdofC2h6 { get; set; }
|
||||
public string? DataIdofCh4 { get; set; }
|
||||
public string? DataIdofH2 { get; set; }
|
||||
public string UseState { get; set; } = null!;
|
||||
public string IsAlert { get; set; } = null!;
|
||||
|
||||
public virtual ImProtectDevice Device { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImProgControl
|
||||
{
|
||||
public ImProgControl()
|
||||
{
|
||||
ImProgControlItems = new HashSet<ImProgControlItem>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string PrjId { get; set; } = null!;
|
||||
public string ProgCtlName { get; set; } = null!;
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
public virtual ImProject Prj { get; set; } = null!;
|
||||
public virtual ICollection<ImProgControlItem> ImProgControlItems { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImProgControlItem
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string ProgCtlId { get; set; } = null!;
|
||||
public string YkdataId { get; set; } = null!;
|
||||
public int Ykstate { get; set; }
|
||||
public int SeqNo { get; set; }
|
||||
public int WaitYxtimeout { get; set; }
|
||||
public int DelayTime { get; set; }
|
||||
|
||||
public virtual ImProgControl ProgCtl { get; set; } = null!;
|
||||
public virtual ImDeviceYk Ykdata { get; set; } = null!;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImProject
|
||||
{
|
||||
public ImProject()
|
||||
{
|
||||
IaVideoPatrols = new HashSet<IaVideoPatrol>();
|
||||
ImDiagrams = new HashSet<ImDiagram>();
|
||||
ImFltDistDevGrps = new HashSet<ImFltDistDevGrp>();
|
||||
ImProgControls = new HashSet<ImProgControl>();
|
||||
ImStations = new HashSet<ImStation>();
|
||||
}
|
||||
|
||||
public string Id { get; set; } = null!;
|
||||
public string Name { get; set; } = null!;
|
||||
public string ProtCommMgrIp { get; set; } = null!;
|
||||
public DateTime CreateTime { get; set; }
|
||||
public string? Creator { get; set; }
|
||||
|
||||
public virtual ICollection<IaVideoPatrol> IaVideoPatrols { get; set; }
|
||||
public virtual ICollection<ImDiagram> ImDiagrams { get; set; }
|
||||
public virtual ICollection<ImFltDistDevGrp> ImFltDistDevGrps { get; set; }
|
||||
public virtual ICollection<ImProgControl> ImProgControls { get; set; }
|
||||
public virtual ICollection<ImStation> ImStations { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeFirstExistingDatabaseSample.ISMS_BASE.Models
|
||||
{
|
||||
public partial class ImProtectDevice
|
||||
{
|
||||
public ImProtectDevice()
|
||||
{
|
||||
ImDeviceData = new HashSet<ImDeviceDatum>();
|
||||
ImDeviceDzs = new HashSet<ImDeviceDz>();
|
||||
ImOnlineAnalyses = new HashSet<ImOnlineAnalysis>();
|
||||
}
|
||||
|
||||
public string DeviceId { get; set; } = null!;
|
||||
public int DeviceAddr { get; set; }
|
||||
public string DeviceName { get; set; } = null!;
|
||||
public string StatCode { get; set; } = null!;
|
||||
public string GateWayId { get; set; } = null!;
|
||||
public string? BayName { get; set; }
|
||||
public int? DeviceState { get; set; }
|
||||
public int PuctgyCode { get; set; }
|
||||
public int CanSwDzzone { get; set; }
|
||||
public int Support12yc { get; set; }
|
||||
public int SupportVersion { get; set; }
|
||||
public int SupportDkjl { get; set; }
|
||||
public int? StartOfDkjl { get; set; }
|
||||
public int? EndOfDkjl { get; set; }
|
||||
public string? DeviceType { get; set; }
|
||||
|
||||
public virtual ImGateWay GateWay { get; set; } = null!;
|
||||
public virtual ImPuCtgy PuctgyCodeNavigation { get; set; } = null!;
|
||||
public virtual ImStation StatCodeNavigation { get; set; } = null!;
|
||||
public virtual ImFltDistDevice? ImFltDistDevice { get; set; }
|
||||
public virtual ImSheBeiProtDevice? ImSheBeiProtDevice { get; set; }
|
||||
public virtual ICollection<ImDeviceDatum> ImDeviceData { get; set; }
|
||||
public virtual ICollection<ImDeviceDz> ImDeviceDzs { get; set; }
|
||||
public virtual ICollection<ImOnlineAnalysis> ImOnlineAnalyses { get; set; }
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user