新增首页、文档页的静态页面
44
Examples/website/FreeSql.Site.DAL/AppSettingsManager.cs
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
using System.IO;
|
||||||
|
using Microsoft.Extensions.Configuration;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.DAL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 配置管理器
|
||||||
|
/// </summary>
|
||||||
|
public static class AppSettingsManager
|
||||||
|
{
|
||||||
|
private static IConfiguration _configuration;
|
||||||
|
|
||||||
|
static AppSettingsManager()
|
||||||
|
{
|
||||||
|
BuildConfiguration();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildConfiguration()
|
||||||
|
{
|
||||||
|
var builder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory())
|
||||||
|
.AddJsonFile("appsettings.json", false).AddJsonFile("appsettings.Development.json", true);
|
||||||
|
_configuration = builder.Build();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 读取指定节点信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="key">节点名称,多节点以:分隔</param>
|
||||||
|
public static string Get(string key)
|
||||||
|
{
|
||||||
|
return _configuration[key];
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 读取指定节点信息
|
||||||
|
/// </summary>
|
||||||
|
public static T Get<T>(string key)
|
||||||
|
{
|
||||||
|
string json = Get(key);
|
||||||
|
return JsonConvert.DeserializeObject<T>(json);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace FreeSql.Site.DAL
|
|
||||||
{
|
|
||||||
public class Class1
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
13
Examples/website/FreeSql.Site.DAL/Db.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.DAL
|
||||||
|
{
|
||||||
|
public class Db
|
||||||
|
{
|
||||||
|
|
||||||
|
public static IFreeSql mysql = new FreeSql.FreeSqlBuilder()
|
||||||
|
.UseConnectionString(FreeSql.DataType.MySql, AppSettingsManager.Get("ConnectionStrings:DefaultDbContext"))
|
||||||
|
.Build();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
35
Examples/website/FreeSql.Site.DAL/DocumentTypeDAL.cs
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
using FreeSql.Site.Entity;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.DAL
|
||||||
|
{
|
||||||
|
public class DocumentTypeDAL
|
||||||
|
{
|
||||||
|
public long Insert(DocumentType model)
|
||||||
|
{
|
||||||
|
return Db.mysql.Insert<DocumentType>(model).ExecuteIdentity();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Update(DocumentType model)
|
||||||
|
{
|
||||||
|
return Db.mysql.Update<DocumentType>(model.ID).ExecuteUpdated().Count > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Delete(long id)
|
||||||
|
{
|
||||||
|
return Db.mysql.Delete<DocumentType>(id).ExecuteDeleted().Count > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<DocumentType> Query(Expression<Func<DocumentType, bool>> where,
|
||||||
|
Expression<Func<DocumentType, DocumentType>> orderby = null)
|
||||||
|
{
|
||||||
|
var list = Db.mysql.Select<DocumentType>()
|
||||||
|
.Where(where);
|
||||||
|
if (orderby != null) list = list.OrderBy(b => b.CreateDt);
|
||||||
|
return list.ToList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -4,8 +4,16 @@
|
|||||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.2.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\..\FreeSql\FreeSql.csproj" />
|
<ProjectReference Include="..\..\..\FreeSql\FreeSql.csproj" />
|
||||||
|
<ProjectReference Include="..\FreeSql.Site.Entity\FreeSql.Site.Entity.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace FreeSql.Site.Entity
|
|
||||||
{
|
|
||||||
public class Class1
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
23
Examples/website/FreeSql.Site.Entity/DocumentType.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using FreeSql.DataAnnotations;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.Entity
|
||||||
|
{
|
||||||
|
public class DocumentType
|
||||||
|
{
|
||||||
|
[Column(IsIdentity = true, IsPrimary = true)]
|
||||||
|
public int ID { get; set; }
|
||||||
|
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
|
||||||
|
public int? UpID { get; set; }
|
||||||
|
|
||||||
|
public DateTime? CreateDt { get; set; }
|
||||||
|
|
||||||
|
public string CreateBy { get; set; }
|
||||||
|
|
||||||
|
public DateTime? UpdateDt { get; set; }
|
||||||
|
|
||||||
|
public string UpdateBy { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -4,4 +4,8 @@
|
|||||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\..\FreeSql\FreeSql.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using FreeSql.Site.UI.Areas.BBS.Models;
|
||||||
|
using FreeSql.Site.UI.Controllers;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.UI.Areas.BBS.Controllers
|
||||||
|
{
|
||||||
|
[Area("BBS")]
|
||||||
|
public class BBSContentController : BaseController
|
||||||
|
{
|
||||||
|
public IActionResult Index()
|
||||||
|
{
|
||||||
|
BBSContentModel model = new BBSContentModel();
|
||||||
|
return View(model);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IActionResult Ask() {
|
||||||
|
BBSContentModel model = new BBSContentModel();
|
||||||
|
return View(model);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.UI.Areas.BBS.Models
|
||||||
|
{
|
||||||
|
public class BBSContentModel
|
||||||
|
{
|
||||||
|
public int OrderBy { get; set; }
|
||||||
|
|
||||||
|
public int ContentID { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
@{
|
||||||
|
ViewBag.Title = ".NET文档园 .NET开源ORM - 首页";
|
||||||
|
}
|
||||||
|
@using FreeSql.Site.UI.Areas.BBS.Models;
|
||||||
|
|
||||||
|
<div style="width:100%; height:430px; text-align:center; padding-top:150px; font-size:20px; font-weight:bold; letter-spacing:6px;" >
|
||||||
|
论坛功能正在开发中......
|
||||||
|
</div>
|
@ -1,8 +1,80 @@
|
|||||||
@*
|
@{
|
||||||
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
//ViewBag.Title = Model.ResultInfo.CurrentType.TypeName + "-" + Model.ResultInfo.Master.MasterName + PubConst.SitePrefix;
|
||||||
*@
|
}
|
||||||
@using Microsoft.AspNetCore.Routing;
|
<div class="layui-main site-inline">
|
||||||
@using Microsoft.AspNetCore.Mvc;
|
<div class="site-tree">
|
||||||
|
<ul class="layui-tree">
|
||||||
|
<li><h2>基础说明</h2></li>
|
||||||
文档首页
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#1"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#2"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#3"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li><h2>复杂应用</h2></li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
<li class="site-tree-noicon">
|
||||||
|
<a href="#"><cite>开始方法</cite></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="site-content">
|
||||||
|
<h1 class="site-h1">开始使用 - 入门指南</h1>
|
||||||
|
<div>
|
||||||
|
<blockquote class="layui-elem-quote">
|
||||||
|
lFreeSql 是轻量化、可扩展和跨平台版的 .NETStandard 数据访问技术实现。<br />
|
||||||
|
FreeSql 可用作对象关系映射程序 (O/RM),以便于开发人员能够使用 .NETStandard 对象来处理数据库,不必经常编写大部分数据访问代码。<br />
|
||||||
|
FreeSql 支持 MySql/SqlServer/PostgreSQL 数据库技术实现。<br />
|
||||||
|
FreeSql 打造 .NETCore 最方便的 ORM,dbfirst codefirst混合使用,codefirst模式下的开发阶段,建好实体不用执行任何操作,就能创建表和修改字段,dbfirst模式下提供api+模板,自定义生成代码,作者提供了3种模板。<br />
|
||||||
|
FreeSql 目前仍处在测试阶段,您可以持续关注或者参与给出宝贵意见,QQ群:4336577
|
||||||
|
</blockquote>
|
||||||
|
<fieldset class="layui-elem-field layui-field-title site-title">
|
||||||
|
<legend><a name="compatibility">兼容性和面向场景</a></legend>
|
||||||
|
</fieldset>
|
||||||
|
<div class="site-text">
|
||||||
|
<p>1. 官网首页下载</p>
|
||||||
|
<blockquote class="layui-elem-quote layui-quote-nm">
|
||||||
|
您可以通过 <a href="#">Github</a> 下载到FreeSql的最新版:
|
||||||
|
</blockquote>
|
||||||
|
<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code<a href="#" target="_blank">FreeSql</a></h3><ol class="layui-code-ol"><li> ├─css //css目录</li><li> │ │─modules //模块css目录(一般如果模块相对较大,我们会单独提取,比如下面三个:)</li><li> │ │ ├─laydate</li><li> │ │ ├─layer</li><li> │ │ └─layim</li><li> │ └─layui.css //核心样式文件</li><li> ├─font //字体图标目录</li><li> ├─images //图片资源目录(目前只有layim和编辑器用到的GIF表情)</li><li> │─lay //模块核心目录</li><li> │ └─modules //各模块组件</li><li> │─layui.js //基础核心库</li><li> └─layui.all.js //包含layui.js和所有模块的合并文件</li><li> </li></ol></pre>
|
||||||
|
<p>2. Git 仓库下载</p>
|
||||||
|
<blockquote class="layui-elem-quote layui-quote-nm">
|
||||||
|
你也可以通过 <a href="https://github.com/2881099/FreeSql/" target="_blank">GitHub</a> 或 <a href="https://gitee.com/sentsin/layui" target="_blank">码云</a> 得到 FreeSql 的完整开发包,以便于你进行二次开发,或者 Fork FreeSql 为我们贡献方案
|
||||||
|
<br><br>
|
||||||
|
<iframe src="//ghbtns.com/github-btn.html?user=2881099&repo=FreeSql&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="156px" height="30px"></iframe>
|
||||||
|
<iframe src="//ghbtns.com/github-btn.html?user=2881099&repo=FreeSql&type=fork&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="156px" height="30px"></iframe>
|
||||||
|
</blockquote>
|
||||||
|
<p>3. npm 安装</p>
|
||||||
|
<pre class="layui-code layui-box layui-code-view layui-code-notepad" lay-skin="notepad"><h3 class="layui-code-h3">code<a href="#" target="_blank">FreeSql</a></h3><ol class="layui-code-ol"><li> </li><li>Install-Package FreeSql </li><li> </li></ol></pre>
|
||||||
|
<p>一般用于 WebPack 管理</p>
|
||||||
|
</div>
|
||||||
|
<fieldset class="layui-elem-field layui-field-title site-title">
|
||||||
|
<legend><a name="quickstart">快速上手</a></legend>
|
||||||
|
</fieldset>
|
||||||
|
<div class="site-text">
|
||||||
|
<p>1. 官网首页下载</p>
|
||||||
|
<blockquote class="layui-elem-quote layui-quote-nm">
|
||||||
|
你可以在我们的 <a href="http://www.layui.com/">官网首页</a> 下载到 layui 的最新版,它经过了自动化构建,更适合用于生产环境。目录结构如下:
|
||||||
|
</blockquote>
|
||||||
|
<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code<a href="#" target="_blank">FreeSql</a></h3><ol class="layui-code-ol"><li> ├─css //css目录</li><li> │ │─modules //模块css目录(一般如果模块相对较大,我们会单独提取,比如下面三个:)</li><li> │ │ ├─laydate</li><li> │ │ ├─layer</li><li> │ │ └─layim</li><li> │ └─layui.css //核心样式文件</li><li> ├─font //字体图标目录</li><li> ├─images //图片资源目录(目前只有layim和编辑器用到的GIF表情)</li><li> │─lay //模块核心目录</li><li> │ └─modules //各模块组件</li><li> │─layui.js //基础核心库</li><li> └─layui.all.js //包含layui.js和所有模块的合并文件</li><li> </li></ol></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="site-tree-mobile layui-hide">
|
||||||
|
<i class="layui-icon"></i>
|
||||||
|
</div>
|
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.UI.Areas.Example.Controllers
|
||||||
|
{
|
||||||
|
[Area("example")]
|
||||||
|
public class MainController : Controller
|
||||||
|
{
|
||||||
|
public IActionResult Index()
|
||||||
|
{
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace FreeSql.Site.UI.Areas.Example.Controllers
|
||||||
|
{
|
||||||
|
[Area("Example")]
|
||||||
|
public class TemplateController : Controller
|
||||||
|
{
|
||||||
|
public IActionResult Index()
|
||||||
|
{
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
@{
|
||||||
|
ViewBag.Title = ".NET文档园 .NET开源ORM - 首页";
|
||||||
|
}
|
||||||
|
<div style="width:100%; height:430px; text-align:center; padding-top:150px; font-size:20px; font-weight:bold; letter-spacing:6px;">
|
||||||
|
示例功能正在开发中......
|
||||||
|
</div>
|
@ -0,0 +1,137 @@
|
|||||||
|
@*
|
||||||
|
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||||
|
*@
|
||||||
|
<div style="width:100%; height:430px; text-align:center; padding-top:150px; font-size:20px; font-weight:bold; letter-spacing:6px;">
|
||||||
|
示例功能正在开发中......
|
||||||
|
</div>
|
||||||
|
<h2>计划如下效果,通过模板生成项目页面</h2>
|
||||||
|
<div style="padding: 20px; background-color: #F2F2F2;">
|
||||||
|
<div class="layui-row layui-col-space15">
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板一</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
卡片式面板面板通常用于非白色背景色的主体内<br>
|
||||||
|
从而映衬出边框投影
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板二</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板三</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板四</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板五</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-md6">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">模板6</div>
|
||||||
|
<div class="layui-card-body">
|
||||||
|
结合 layui 的栅格系统<br>
|
||||||
|
轻松实现响应式布局
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
@{
|
||||||
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||||
|
}
|
@ -10,12 +10,11 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Areas\BBS\Controllers\" />
|
|
||||||
<Folder Include="Areas\BBS\Data\" />
|
<Folder Include="Areas\BBS\Data\" />
|
||||||
<Folder Include="Areas\BBS\Models\" />
|
|
||||||
<Folder Include="Areas\BBS\Views\" />
|
|
||||||
<Folder Include="Areas\Doc\Data\" />
|
<Folder Include="Areas\Doc\Data\" />
|
||||||
<Folder Include="Areas\Doc\Models\" />
|
<Folder Include="Areas\Doc\Models\" />
|
||||||
|
<Folder Include="Areas\Example\Data\" />
|
||||||
|
<Folder Include="Areas\Example\Models\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -25,6 +24,11 @@
|
|||||||
<Content Update="Areas\Doc\_ViewStart.cshtml">
|
<Content Update="Areas\Doc\_ViewStart.cshtml">
|
||||||
<Pack>$(IncludeRazorContentInPack)</Pack>
|
<Pack>$(IncludeRazorContentInPack)</Pack>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Update="Areas\Example\_ViewStart.cshtml">
|
||||||
|
<Pack>$(IncludeRazorContentInPack)</Pack>
|
||||||
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JSONSchema="" /></VisualStudio></ProjectExtensions>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -42,25 +42,23 @@
|
|||||||
|
|
||||||
<div class="layui-main">
|
<div class="layui-main">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="site-idea">
|
<ul class="site-idea">
|
||||||
<li>
|
<li>
|
||||||
<fieldset class="layui-elem-field layui-field-title">
|
<fieldset class="layui-elem-field layui-field-title">
|
||||||
<legend>返璞归真</legend>
|
<legend>返璞归真</legend>
|
||||||
<p>身处在前端社区的繁荣之下,我们都在有意或无意地追逐。而 layui 偏偏回望当初,奔赴在返璞归真的漫漫征途,自信并勇敢着,追寻于原生态的书写指令,试图以最简单的方式诠释高效。</p>
|
<p>身处在前端社区的繁荣之下,我们都在有意或无意地追逐。而 FreeSql 偏偏回望当初,奔赴在返璞归真的漫漫征途,自信并勇敢着,追寻于原生态的书写指令,试图以最简单的方式诠释高效。</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<fieldset class="layui-elem-field layui-field-title">
|
<fieldset class="layui-elem-field layui-field-title">
|
||||||
<legend>双面体验</legend>
|
<legend>双面体验</legend>
|
||||||
<p>拥有双面的不仅是人生,还有 layui。一面极简,一面丰盈。极简是视觉所见的外在,是开发所念的简易。丰盈是倾情雕琢的内在,是信手拈来的承诺。一切本应如此,简而全,双重体验。</p>
|
<p>拥有双面的不仅是人生,还有 FreeSql。一面极简,一面丰盈。极简是视觉所见的外在,是开发所念的简易。丰盈是倾情雕琢的内在,是信手拈来的承诺。一切本应如此,简而全,双重体验。</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<fieldset class="layui-elem-field layui-field-title">
|
<fieldset class="layui-elem-field layui-field-title">
|
||||||
<legend>星辰大海</legend>
|
<legend>星辰大海</legend>
|
||||||
<p>如果眼下还是一团零星之火,那运筹帷幄之后,迎面东风,就是一场烈焰燎原吧,那必定会是一番尽情的燃烧。待,秋风萧瑟时,散作满天星辰,你看那四季轮回<!--海天相接-->,正是 layui 不灭的执念。</p>
|
<p>如果眼下还是一团零星之火,那运筹帷幄之后,迎面东风,就是一场烈焰燎原吧,那必定会是一番尽情的燃烧。待,秋风萧瑟时,散作满天星辰,你看那四季轮回<!--海天相接-->,正是 FreeSql 不灭的执念。</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
|
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
|
||||||
</environment>
|
</environment>
|
||||||
</head>
|
</head>
|
||||||
<body class="site-home" id="LAY_home" style="background-color: #eee;" data-date="12-27">
|
<body class="site-home" id="LAY_home" style="background-color: #fff;" data-date="12-27">
|
||||||
<div class="layui-header header header-index" winter="">
|
<div class="layui-header header header-index" winter="">
|
||||||
<div class="layui-main">
|
<div class="layui-main">
|
||||||
<a class="logo" href="/">
|
<a class="logo" href="/">
|
||||||
@ -25,49 +25,22 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="layui-form component">
|
<div class="layui-form component">
|
||||||
<select lay-search="" lay-filter="component">
|
<select lay-search="" lay-filter="component">
|
||||||
<option value="">搜索组件或模块</option>
|
<option value="">搜索功能</option>
|
||||||
<option value="element/layout.html">grid 栅格布局</option>
|
<option value="element/layout.html">实体</option>
|
||||||
<option value="element/layout.html#admin">admin 后台布局</option>
|
<option value="element/layout.html#admin">查询</option>
|
||||||
<option value="element/color.html">color 颜色</option>
|
<option value="element/color.html">联表之一:使用导航属性</option>
|
||||||
<option value="element/icon.html">iconfont 字体图标</option>
|
<option value="element/icon.html">联表之二:无导航属性</option>
|
||||||
<option value="element/anim.html">animation 动画</option>
|
<option value="element/anim.html">联表之三:b, c 条件怎么设?试试这种!</option>
|
||||||
<option value="element/button.html">button 按钮</option>
|
<option value="element/button.html">联表之四:原生SQL联表</option>
|
||||||
<option value="element/form.html">form 表单组</option>
|
<option value="element/form.html">分组聚合</option>
|
||||||
<option value="element/form.html#input">input 输入框</option>
|
<option value="element/form.html#input">执行SQL返回数据</option>
|
||||||
<option value="element/form.html#select">select 下拉选择框</option>
|
<option value="element/form.html#select">添加</option>
|
||||||
<option value="element/form.html#checkbox">checkbox 复选框</option>
|
<option value="element/form.html#checkbox">执行命令</option>
|
||||||
<option value="element/form.html#switch">switch 开关</option>
|
<option value="element/form.html#switch">修改</option>
|
||||||
<option value="element/form.html#radio">radio 单选框</option>
|
<option value="element/form.html#radio">更新条件</option>
|
||||||
<option value="element/form.html#textarea">textarea 文本域</option>
|
<option value="element/form.html#textarea">自定义SQL</option>
|
||||||
<option value="element/nav.html">nav 导航菜单</option>
|
<option value="element/nav.html">删除</option>
|
||||||
<option value="element/nav.html#breadcrumb">breadcrumb 面包屑</option>
|
<option value="element/nav.html#breadcrumb">表达式函数</option>
|
||||||
<option value="element/tab.html">tabs 选项卡</option>
|
|
||||||
<option value="element/progress.html">progress 进度条</option>
|
|
||||||
<option value="element/collapse.html">collapse 折叠面板/手风琴</option>
|
|
||||||
<option value="element/table.html">table 表格元素</option>
|
|
||||||
<option value="element/badge.html">badge 徽章</option>
|
|
||||||
<option value="element/timeline.html">timeline 时间线</option>
|
|
||||||
<option value="element/auxiliar.html#blockquote">blockquote 引用块</option>
|
|
||||||
<option value="element/auxiliar.html#fieldset">fieldset 字段集</option>
|
|
||||||
<option value="element/auxiliar.html#hr">hr 分割线</option>
|
|
||||||
<option value="modules/layer.html">layer 弹出层/弹窗综合</option>
|
|
||||||
<option value="modules/laydate.html">laydate 日期时间选择器</option>
|
|
||||||
<option value="modules/layim.html">layim 即时通讯/聊天</option>
|
|
||||||
<option value="modules/laypage.html">laypage 分页</option>
|
|
||||||
<option value="modules/laytpl.html">laytpl 模板引擎</option>
|
|
||||||
<option value="modules/form.html">form 表单模块</option>
|
|
||||||
<option value="modules/table.html">table 数据表格</option>
|
|
||||||
<option value="modules/upload.html">upload 文件/图片上传</option>
|
|
||||||
<option value="modules/element.html">element 常用元素操作</option>
|
|
||||||
<option value="modules/rate.html">rate 评分</option>
|
|
||||||
<option value="modules/colorpicker.html">colorpicker 颜色选择器</option>
|
|
||||||
<option value="modules/slider.html">slider 滑块</option>
|
|
||||||
<option value="modules/carousel.html">carousel 轮播/跑马灯</option>
|
|
||||||
<option value="modules/layedit.html">layedit 富文本编辑器</option>
|
|
||||||
<option value="modules/tree.html">tree 树形菜单</option>
|
|
||||||
<option value="modules/flow.html">flow 信息流/图片懒加载</option>
|
|
||||||
<option value="modules/util.html">util 工具集</option>
|
|
||||||
<option value="modules/code.html">code 代码修饰</option>
|
|
||||||
</select>
|
</select>
|
||||||
<div class="layui-form-select">
|
<div class="layui-form-select">
|
||||||
<div class="layui-select-title">
|
<div class="layui-select-title">
|
||||||
@ -122,40 +95,40 @@
|
|||||||
</div>
|
</div>
|
||||||
<ul class="layui-nav">
|
<ul class="layui-nav">
|
||||||
<li class="layui-nav-item ">
|
<li class="layui-nav-item ">
|
||||||
<a href="/doc/documents/index">文档<!-- <span class="layui-badge-dot"></span> --></a>
|
<a href="/doc/documents/" target="_self">文档<!-- <span class="layui-badge-dot"></span> --></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item ">
|
<li class="layui-nav-item ">
|
||||||
<a href="/demo/">示例<!-- <span class="layui-badge-dot"></span> --></a>
|
<a href="/example/main/" target="_self">示例<!-- <span class="layui-badge-dot"></span> --></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item layui-hide-xs">
|
<li class="layui-nav-item layui-hide-xs">
|
||||||
<a href="/bbs/document/index" target="_blank">社区</a>
|
<a href="/bbs/bbscontent/" target="_self">社区</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="layui-nav-item">
|
@*<li class="layui-nav-item">
|
||||||
<a href="javascript:;"><span class="layui-badge-dot" style="margin: -5px 0 0 -15px;"></span>周边<span class="layui-nav-more"></span></a>
|
<a href="javascript:;"><span class="layui-badge-dot" style="margin: -5px 0 0 -15px;"></span>周边<span class="layui-nav-more"></span></a>
|
||||||
<dl class="layui-nav-child layui-anim layui-anim-upbit">
|
<dl class="layui-nav-child layui-anim layui-anim-upbit">
|
||||||
<dd lay-unselect="">
|
<dd lay-unselect="">
|
||||||
<a href="//fly.layui.com/extend/" target="_blank">扩展组件</a>
|
<a href="//fly.layui.com/extend/" target="_blank">扩展组件</a>
|
||||||
</dd>
|
</dd>
|
||||||
<dd lay-unselect="">
|
<dd lay-unselect="">
|
||||||
<a href="//fly.layui.com/store/" target="_blank">模板市场 <span class="layui-badge-dot"></span></a>
|
<a href="//fly.layui.com/store/" target="_blank">模板市场 <span class="layui-badge-dot"></span></a>
|
||||||
<hr>
|
<hr>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd class="layui-hide-sm layui-show-xs" lay-unselect="">
|
<dd class="layui-hide-sm layui-show-xs" lay-unselect="">
|
||||||
<a href="//fly.layui.com/" target="_blank">社区交流</a>
|
<a href="//fly.layui.com/" target="_blank">社区交流</a>
|
||||||
<hr>
|
<hr>
|
||||||
</dd>
|
</dd>
|
||||||
<dd lay-unselect=""><a href="/admin/" target="_blank">后台模板</a></dd>
|
<dd lay-unselect=""><a href="/admin/" target="_blank">后台模板</a></dd>
|
||||||
<dd lay-unselect=""><a href="/layim/" target="_blank">即时聊天</a><hr></dd>
|
<dd lay-unselect=""><a href="/layim/" target="_blank">即时聊天</a><hr></dd>
|
||||||
|
|
||||||
<dd lay-unselect=""><a href="/alone.html" target="_blank" lay-unselect="">独立组件</a></dd>
|
<dd lay-unselect=""><a href="/alone.html" target="_blank" lay-unselect="">独立组件</a></dd>
|
||||||
<dd lay-unselect=""><a href="#" target="_blank">Axure 组件</a></dd>
|
<dd lay-unselect=""><a href="#" target="_blank">Axure 组件</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>*@
|
||||||
|
|
||||||
<li class="layui-nav-item layui-hide-xs" lay-unselect="">
|
<li class="layui-nav-item layui-hide-xs" lay-unselect="">
|
||||||
<a href="/admin/">后台模板<span class="layui-badge-dot" style="margin-top: -5px;"></span></a>
|
<a href="/Example/Template">模板下载<span class="layui-badge-dot" style="margin-top: -5px;"></span></a>
|
||||||
</li>
|
</li>
|
||||||
<span class="layui-nav-bar" style="left: 54px; top: 55px; width: 0px; opacity: 0;"></span>
|
<span class="layui-nav-bar" style="left: 54px; top: 55px; width: 0px; opacity: 0;"></span>
|
||||||
</ul>
|
</ul>
|
||||||
@ -165,18 +138,17 @@
|
|||||||
<partial name="_CookieConsentPartial" />
|
<partial name="_CookieConsentPartial" />
|
||||||
|
|
||||||
<div class="container body-content">
|
<div class="container body-content">
|
||||||
@RenderBody();
|
@RenderBody()
|
||||||
<hr />
|
|
||||||
<div class="layui-footer footer footer-index">
|
<div class="layui-footer footer footer-index">
|
||||||
<div class="layui-main">
|
<div class="layui-main">
|
||||||
<p>© 2018 <a href="/">FreeSql.com</a> MIT license</p>
|
<p>© 2018 <a href="/">FreeSql.com</a> MIT license</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="http://fly.layui.com/case/2018/" target="_blank">案例</a>
|
<a href="#" target="_blank">案例</a>
|
||||||
<a href="http://fly.layui.com/jie/3147/" target="_blank">支持</a>
|
<a href="#" target="_blank">支持</a>
|
||||||
<a href="https://github.com/sentsin/layui/" target="_blank" rel="nofollow">GitHub</a>
|
<a href="#" target="_blank" rel="nofollow">GitHub</a>
|
||||||
<a href="https://gitee.com/sentsin/layui" target="_blank" rel="nofollow">码云</a>
|
<a href="#" target="_blank" rel="nofollow">码云</a>
|
||||||
<a href="http://fly.layui.com/jie/2461/" target="_blank">公众号</a>
|
<a href="#" target="_blank">公众号</a>
|
||||||
<a href="http://www.miitbeian.gov.cn/" target="_blank" rel="nofollow">赣ICP备13006272号-2</a>
|
<a href="#" target="_blank" rel="nofollow">赣ICP备xxxxxxx号-2</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"DefaultDbContext": "Data Source=127.0.0.1;Port=3307;User ID=root;Password=abc123456;Database=FreeSqlTest;Charset=utf8;SslMode=none;Max pool size=10"
|
||||||
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Debug",
|
"Default": "Debug",
|
||||||
|
1819
Examples/website/FreeSql.Site.UI/wwwroot/css/site - 复制.css
Normal file
1
Examples/website/FreeSql.Site.UI/wwwroot/css/site - 复制.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}}
|
BIN
Examples/website/FreeSql.Site.UI/wwwroot/images/default.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
@ -0,0 +1,2 @@
|
|||||||
|
/** layui-v2.2.3 MIT License By http://www.layui.com */
|
||||||
|
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 222 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 777 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.3 KiB |