Commit ee9256ef authored by 徐盼盼's avatar 徐盼盼

1.字段添加

IsWrap bit -- 是否换行
parent 1990a40c
// 为模型“D:\git\FTT_Board\FTT.Board\Ftt.Board.EF\BoardModel.edmx”启用了 T4 代码生成。
// 为模型“C:\Pan\FTT_Board\FTT.Board\Ftt.Board.EF\BoardModel.edmx”启用了 T4 代码生成。
// 要启用旧代码生成功能,请将“代码生成策略”设计器属性的值
// 更改为“旧的 ObjectContext”。当在设计器中打开该模型时,此属性会出现在
// “属性”窗口中。
......
......@@ -4,15 +4,7 @@
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="BoardModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2012" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityContainer Name="BoardModelStoreContainer">
<EntitySet Name="CFG_Board" EntityType="BoardModel.Store.CFG_Board" store:Type="Tables" Schema="dbo" />
<EntitySet Name="CFG_BoardDetail" EntityType="BoardModel.Store.CFG_BoardDetail" store:Type="Tables" Schema="dbo" />
<AssociationSet Name="CFG_BoardCFG_BoardDetail" Association="BoardModel.Store.CFG_BoardCFG_BoardDetail">
<End Role="CFG_Board" EntitySet="CFG_Board" />
<End Role="CFG_BoardDetail" EntitySet="CFG_BoardDetail" />
</AssociationSet>
</EntityContainer>
<Schema Namespace="BoardModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityType Name="CFG_Board">
<Key>
<PropertyRef Name="ID" />
......@@ -22,11 +14,11 @@
<Property Name="BoardCode" Type="nvarchar(max)" Nullable="false" />
<Property Name="BoardName" Type="nvarchar(max)" Nullable="false" />
<Property Name="ProcName" Type="nvarchar(max)" Nullable="false" />
<Property Name="ConnectionString" Type="nvarchar(max)" Nullable="true" />
<Property Name="ConnectionString" Type="nvarchar(max)" />
<Property Name="RefreshTime" Type="int" Nullable="false" />
<Property Name="PageRefreshTime" Type="int" Nullable="true" />
<Property Name="PageRefreshTime" Type="int" />
<Property Name="LayoutID" Type="int" Nullable="false" />
<Property Name="BorderColor" Type="nvarchar(max)" Nullable="true" />
<Property Name="BorderColor" Type="nvarchar(max)" />
</EntityType>
<EntityType Name="CFG_BoardDetail">
<Key>
......@@ -34,29 +26,33 @@
</Key>
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="BoardID" Type="int" Nullable="false" />
<Property Name="Height" Type="decimal" Nullable="false" />
<Property Name="Width" Type="decimal" Nullable="false" />
<Property Name="BackgroundColor" Type="nvarchar(max)" Nullable="true" />
<Property Name="FontColor1" Type="nvarchar(max)" Nullable="true" />
<Property Name="FontSize1" Type="int" Nullable="true" />
<Property Name="FontColor2" Type="nvarchar(max)" Nullable="true" />
<Property Name="FontSize2" Type="int" Nullable="true" />
<Property Name="IsShow" Type="bit" Nullable="false" />
<Property Name="IsTimeShow" Type="bit" Nullable="true" />
<Property Name="Height" Type="decimal" Precision="18" Scale="0" Nullable="false" />
<Property Name="Width" Type="decimal" Precision="18" Scale="0" Nullable="false" />
<Property Name="BackgroundColor" Type="nvarchar(max)" />
<Property Name="FontColor1" Type="nvarchar(max)" />
<Property Name="FontSize1" Type="int" />
<Property Name="FontColor2" Type="nvarchar(max)" />
<Property Name="FontSize2" Type="int" />
<Property Name="IsShow" Type="bit" />
<Property Name="IsTimeShow" Type="bit" />
<Property Name="ChartType" Type="int" Nullable="false" />
<Property Name="RefreshTime" Type="int" Nullable="false" />
<Property Name="RefreshType" Type="int" Nullable="true" />
<Property Name="RefreshType" Type="int" />
<Property Name="WorkTeamID" Type="int" Nullable="false" />
<Property Name="Flag" Type="int" Nullable="false" />
<Property Name="PageSize" Type="int" Nullable="false" />
<Property Name="PageIndex" Type="int" Nullable="false" />
<Property Name="PositionIndex" Type="int" Nullable="false" />
<Property Name="BorderColor" Type="nvarchar" MaxLength="50" />
<Property Name="Horizontal" Type="int" />
<Property Name="Vertical" Type="int" />
<Property Name="IsWrap" Type="bit" />
</EntityType>
<Association Name="CFG_BoardCFG_BoardDetail">
<End Role="CFG_Board" Type="BoardModel.Store.CFG_Board" Multiplicity="1">
<Association Name="FK_CFG_BoardCFG_BoardDetail">
<End Role="CFG_Board" Type="Self.CFG_Board" Multiplicity="1">
<OnDelete Action="Cascade" />
</End>
<End Role="CFG_BoardDetail" Type="BoardModel.Store.CFG_BoardDetail" Multiplicity="*" />
<End Role="CFG_BoardDetail" Type="Self.CFG_BoardDetail" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="CFG_Board">
<PropertyRef Name="ID" />
......@@ -66,7 +62,15 @@
</Dependent>
</ReferentialConstraint>
</Association>
</Schema></edmx:StorageModels>
<EntityContainer Name="BoardModelStoreContainer">
<EntitySet Name="CFG_Board" EntityType="Self.CFG_Board" Schema="dbo" store:Type="Tables" />
<EntitySet Name="CFG_BoardDetail" EntityType="Self.CFG_BoardDetail" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK_CFG_BoardCFG_BoardDetail" Association="Self.FK_CFG_BoardCFG_BoardDetail">
<End Role="CFG_Board" EntitySet="CFG_Board" />
<End Role="CFG_BoardDetail" EntitySet="CFG_BoardDetail" />
</AssociationSet>
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="BoardModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
......@@ -83,27 +87,27 @@
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="BackgroundColor" Type="String" Nullable="false" >
<Property Name="BackgroundColor" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>看板背景色</Summary>
</Documentation>
</Property>
<Property Name="BoardCode" Type="String" Nullable="false" annotation:StoreGeneratedPattern="None" >
<Property Name="BoardCode" Type="String" Nullable="false" annotation:StoreGeneratedPattern="None" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>看板编码</Summary>
</Documentation>
</Property>
<Property Name="BoardName" Type="String" Nullable="false" >
<Property Name="BoardName" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>看板名称</Summary>
</Documentation>
</Property>
<Property Name="ProcName" Type="String" Nullable="false" >
<Property Name="ProcName" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>存储过程名称</Summary>
</Documentation>
</Property>
<Property Name="ConnectionString" Type="String" Nullable="true" >
<Property Name="ConnectionString" Type="String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>数据库连接字符串</Summary>
</Documentation>
......@@ -120,7 +124,7 @@
</Property>
<Property Name="LayoutID" Type="Int32" Nullable="false" />
<NavigationProperty Name="CFG_BoardDetail" Relationship="BoardModel.CFG_BoardCFG_BoardDetail" FromRole="CFG_Board" ToRole="CFG_BoardDetail" />
<Property Name="BorderColor" Type="String" Nullable="true" >
<Property Name="BorderColor" Type="String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>边框颜色</Summary>
</Documentation>
......@@ -133,22 +137,22 @@
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="BoardID" Type="Int32" Nullable="false" />
<Property Name="Height" Type="Decimal" Nullable="false" >
<Property Name="Height" Type="Decimal" Nullable="false" Precision="18" Scale="0" >
<Documentation>
<Summary>高度(百分比)</Summary>
</Documentation>
</Property>
<Property Name="Width" Type="Decimal" Nullable="false" >
<Property Name="Width" Type="Decimal" Nullable="false" Precision="18" Scale="0" >
<Documentation>
<Summary>宽度(百分比)</Summary>
</Documentation>
</Property>
<Property Name="BackgroundColor" Type="String" Nullable="true" >
<Property Name="BackgroundColor" Type="String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>背景色</Summary>
</Documentation>
</Property>
<Property Name="FontColor1" Type="String" Nullable="true" >
<Property Name="FontColor1" Type="String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>字体1颜色</Summary>
</Documentation>
......@@ -158,7 +162,7 @@
<Summary>字体1大小</Summary>
</Documentation>
</Property>
<Property Name="FontColor2" Type="String" Nullable="true" >
<Property Name="FontColor2" Type="String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" >
<Documentation>
<Summary>字体二颜色</Summary>
</Documentation>
......@@ -168,7 +172,7 @@
<Summary>字体2大小</Summary>
</Documentation>
</Property>
<Property Name="IsShow" Type="Boolean" Nullable="false" >
<Property Name="IsShow" Type="Boolean" >
<Documentation>
<Summary>是否显示</Summary>
</Documentation>
......@@ -202,6 +206,10 @@
<Summary>看板位置</Summary>
</Documentation>
</Property>
<Property Name="BorderColor" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="Horizontal" Type="Int32" />
<Property Name="Vertical" Type="Int32" />
<Property Name="IsWrap" Type="Boolean" />
</EntityType>
<EnumType Name="ChartTypeEnums" cg:ExternalTypeName="FTT.Board.EF.Enums.ChartTypeEnums" />
<EnumType Name="RefreshTypeEnums" cg:ExternalTypeName="FTT.Board.EF.Enums.RefreshTypeEnums" />
......@@ -244,6 +252,10 @@
<EntitySetMapping Name="CFG_BoardDetail">
<EntityTypeMapping TypeName="IsTypeOf(BoardModel.CFG_BoardDetail)">
<MappingFragment StoreEntitySet="CFG_BoardDetail">
<ScalarProperty Name="IsWrap" ColumnName="IsWrap" />
<ScalarProperty Name="Vertical" ColumnName="Vertical" />
<ScalarProperty Name="Horizontal" ColumnName="Horizontal" />
<ScalarProperty Name="BorderColor" ColumnName="BorderColor" />
<ScalarProperty Name="ID" ColumnName="ID" />
<ScalarProperty Name="BoardID" ColumnName="BoardID" />
<ScalarProperty Name="Height" ColumnName="Height" />
......@@ -282,6 +294,7 @@
<DesignerProperty Name="EnablePluralization" Value="False" />
<DesignerProperty Name="CodeGenerationStrategy" Value="无" />
<DesignerProperty Name="UseLegacyProvider" Value="False" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
</DesignerInfoPropertySet>
</edmx:Options>
<!-- Diagram content (shape and connector positions) -->
......
......@@ -71,7 +71,11 @@ CREATE TABLE [dbo].[CFG_BoardDetail] (
[Flag] int NOT NULL,
[PageSize] int NOT NULL,
[PageIndex] int NOT NULL,
[PositionIndex] int NOT NULL
[PositionIndex] int NOT NULL,
[BorderColor] nvarchar(50) NULL,
[Horizontal] int NULL,
[Vertical] int NULL,
[IsWrap] bit NULL,
);
GO
......
......@@ -69,7 +69,7 @@ namespace FTT.Board.EF
/// 是否显示
/// </summary>
[DataMember]
public bool IsShow { get; set; }
public Nullable<bool> IsShow { get; set; }
/// <summary>
/// 是否显示时间
/// </summary>
......@@ -115,5 +115,25 @@ namespace FTT.Board.EF
/// </summary>
[DataMember]
public int PositionIndex { get; set; }
/// <summary>
///
/// </summary>
[DataMember]
public string BorderColor { get; set; }
/// <summary>
///
/// </summary>
[DataMember]
public Nullable<int> Horizontal { get; set; }
/// <summary>
///
/// </summary>
[DataMember]
public Nullable<int> Vertical { get; set; }
/// <summary>
///
/// </summary>
[DataMember]
public Nullable<bool> IsWrap { get; set; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment