forked from Halifa/TonyBlogs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using ServiceStack.DataAnnotations; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace TonyBlogs.Entity | ||
{ | ||
public class BlogArticle | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[PrimaryKey] | ||
[AutoIncrement] | ||
public long ID { get; set; } | ||
|
||
/// <summary> | ||
/// 创建人 | ||
/// </summary> | ||
public string Submitter { get; set; } | ||
|
||
/// <summary> | ||
/// 博客标题 | ||
/// </summary> | ||
public string Title { get; set; } | ||
|
||
/// <summary> | ||
/// 类别 | ||
/// </summary> | ||
public string Category { get; set; } | ||
|
||
/// <summary> | ||
/// 内容 | ||
/// </summary> | ||
public string Content { get; set; } | ||
|
||
/// <summary> | ||
/// 访问量 | ||
/// </summary> | ||
public int Traffic { get; set; } | ||
|
||
/// <summary> | ||
/// 评论数量 | ||
/// </summary> | ||
public int CommentNum { get; set; } | ||
|
||
/// <summary> | ||
/// 修改时间 | ||
/// </summary> | ||
public DateTime UpdateTime { get; set; } | ||
|
||
/// <summary> | ||
/// 创建时间 | ||
/// </summary> | ||
public DateTime CreateTime { get; set; } | ||
|
||
/// <summary> | ||
/// 备注 | ||
/// </summary> | ||
public string Remark { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{FF3E36AC-8A81-4700-AAE7-E27C29A7E83F}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>TonyBlogs.Service</RootNamespace> | ||
<AssemblyName>TonyBlogs.Service</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="BaseService.cs" /> | ||
<Compile Include="BlogArticleService.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\TonyBlogs.Entity\TonyBlogs.Entity.csproj"> | ||
<Project>{cadabaec-616d-4135-8337-03d8efbfcb9e}</Project> | ||
<Name>TonyBlogs.Entity</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\TonyBlogs.Framework\TonyBlogs.Framework.csproj"> | ||
<Project>{943df536-760c-40b0-b3fc-3ec3e29a2c83}</Project> | ||
<Name>TonyBlogs.Framework</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\TonyBlogs.IRepository\TonyBlogs.IRepository.csproj"> | ||
<Project>{d6cf2021-b095-4103-9d1c-294e19c9eb4f}</Project> | ||
<Name>TonyBlogs.IRepository</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\TonyBlogs.IService\TonyBlogs.IService.csproj"> | ||
<Project>{2dec0442-efaa-4c3b-b610-21a95099802f}</Project> | ||
<Name>TonyBlogs.IService</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |