mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
update t4 temple
简单更新 t4 模板,纠正解决方案名等
This commit is contained in:
parent
eede84426e
commit
bac588cd16
|
@ -30,7 +30,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
namespace UZK.EFCore.Entity
|
namespace Blog.Core.Model.Models
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
///<#=tableName#>
|
///<#=tableName#>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// 此代码由T4模板自动生成
|
// 此代码由T4模板自动生成
|
||||||
// 生成时间 2019-12-07 17:32:59
|
// 生成时间 2019-12-10 12:14:04
|
||||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,9 @@
|
||||||
<#
|
<#
|
||||||
if(tableName!=""){
|
if(tableName!=""){
|
||||||
#>
|
#>
|
||||||
using System;
|
using Blog.Core.IRepository.Base;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
namespace Blog.Core.FrameWork.IRepository
|
namespace Blog.Core.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// I<#=tableName#>Repository
|
/// I<#=tableName#>Repository
|
||||||
|
@ -70,9 +70,9 @@ namespace Blog.Core.FrameWork.IRepository
|
||||||
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using Blog.Core.IRepository.Base;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
namespace Blog.Core.FrameWork.IRepository
|
namespace Blog.Core.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// I<#=row["TABLE_NAME"].ToString()#>Repository
|
/// I<#=row["TABLE_NAME"].ToString()#>Repository
|
||||||
|
@ -95,9 +95,9 @@ namespace Blog.Core.FrameWork.IRepository
|
||||||
|
|
||||||
//----------开始----------
|
//----------开始----------
|
||||||
|
|
||||||
using System;
|
using Blog.Core.IRepository.Base;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
namespace Blog.Core.FrameWork.IRepository
|
namespace Blog.Core.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// IBaseRepository
|
/// IBaseRepository
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// 此代码由T4模板自动生成
|
// 此代码由T4模板自动生成
|
||||||
// 生成时间 2019-12-07 17:35:24
|
// 生成时间 2019-12-10 12:14:01
|
||||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,10 @@ if(tableName!=""){
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using Blog.Core.IServices.BASE;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
namespace Blog.Core.FrameWork.IServices
|
|
||||||
|
namespace Blog.Core.IServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// I<#=tableName#>Services
|
/// I<#=tableName#>Services
|
||||||
|
@ -73,10 +74,10 @@ namespace Blog.Core.FrameWork.IServices
|
||||||
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using Blog.Core.IServices.BASE;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
|
|
||||||
namespace Blog.Core.FrameWork.IServices
|
namespace Blog.Core.IServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <#=row["TABLE_NAME"].ToString()#>Services
|
/// <#=row["TABLE_NAME"].ToString()#>Services
|
||||||
|
@ -99,9 +100,10 @@ namespace Blog.Core.FrameWork.IServices
|
||||||
|
|
||||||
//----------开始----------
|
//----------开始----------
|
||||||
|
|
||||||
using System;
|
using Blog.Core.IServices.BASE;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
namespace Blog.Core.FrameWork.IServices
|
|
||||||
|
namespace Blog.Core.IServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// IBaseRepository
|
/// IBaseRepository
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// 此代码由T4模板自动生成
|
// 此代码由T4模板自动生成
|
||||||
// 生成时间 2019-12-07 17:40:09
|
// 生成时间 2019-12-10 12:14:21
|
||||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -39,10 +39,11 @@ if(tableName!=""){
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using Blog.Core.Repository.Base;
|
||||||
using Blog.Core.FrameWork.IRepository;
|
using Blog.Core.Model.Models;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.IRepository;
|
||||||
namespace Blog.Core.FrameWork.Repository
|
using Blog.Core.IRepository.UnitOfWork;
|
||||||
|
namespace Blog.Core.Repository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <#=tableName#>Repository
|
/// <#=tableName#>Repository
|
||||||
|
@ -73,11 +74,11 @@ namespace Blog.Core.FrameWork.Repository
|
||||||
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using Blog.Core.Repository.Base;
|
||||||
using Blog.Core.FrameWork.IRepository;
|
using Blog.Core.Model.Models;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.IRepository;
|
||||||
|
using Blog.Core.IRepository.UnitOfWork;
|
||||||
namespace Blog.Core.FrameWork.Repository
|
namespace Blog.Core.Repository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <#=row["TABLE_NAME"].ToString()#>Repository
|
/// <#=row["TABLE_NAME"].ToString()#>Repository
|
||||||
|
@ -102,10 +103,11 @@ namespace Blog.Core.FrameWork.Repository
|
||||||
|
|
||||||
//----------开始----------
|
//----------开始----------
|
||||||
|
|
||||||
using System;
|
using Blog.Core.Repository.Base;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.Model.Models;
|
||||||
using Blog.Core.FrameWork.IRepository;
|
using Blog.Core.IRepository;
|
||||||
namespace Blog.Core.FrameWork.Repository
|
using Blog.Core.IRepository.UnitOfWork;
|
||||||
|
namespace Blog.Core.Repository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// IBaseRepository
|
/// IBaseRepository
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// 此代码由T4模板自动生成
|
// 此代码由T4模板自动生成
|
||||||
// 生成时间 2019-12-07 17:41:53
|
// 生成时间 2019-12-10 12:14:44
|
||||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -41,10 +41,14 @@ if(tableName!=""){
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Blog.Core.FrameWork.IServices;
|
using System.Threading.Tasks;
|
||||||
using Blog.Core.FrameWork.IRepository;
|
using Blog.Core.Common;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using Blog.Core.IRepository;
|
||||||
namespace Blog.Core.FrameWork.Services
|
using Blog.Core.IRepository.UnitOfWork;
|
||||||
|
using Blog.Core.IServices;
|
||||||
|
using Blog.Core.Model.Models;
|
||||||
|
using Blog.Core.Services.BASE;
|
||||||
|
namespace Blog.Core.Services
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <#=tableName#>Services
|
/// <#=tableName#>Services
|
||||||
|
@ -81,12 +85,16 @@ namespace Blog.Core.FrameWork.Services
|
||||||
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
//----------<#=row["TABLE_NAME"].ToString()#>开始----------
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using Blog.Core.FrameWork.IServices;
|
|
||||||
using Blog.Core.FrameWork.IRepository;
|
|
||||||
using Blog.Core.FrameWork.Entity;
|
|
||||||
|
|
||||||
namespace Blog.Core.FrameWork.Services
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Blog.Core.Common;
|
||||||
|
using Blog.Core.IRepository;
|
||||||
|
using Blog.Core.IRepository.UnitOfWork;
|
||||||
|
using Blog.Core.IServices;
|
||||||
|
using Blog.Core.Model.Models;
|
||||||
|
using Blog.Core.Services.BASE;
|
||||||
|
namespace Blog.Core.Services
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <#=row["TABLE_NAME"].ToString()#>Services
|
/// <#=row["TABLE_NAME"].ToString()#>Services
|
||||||
|
@ -115,11 +123,16 @@ namespace Blog.Core.FrameWork.Services
|
||||||
|
|
||||||
//----------开始----------
|
//----------开始----------
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Blog.Core.FrameWork.Entity;
|
using System.Threading.Tasks;
|
||||||
using Blog.Core.FrameWork.IServices;
|
using Blog.Core.Common;
|
||||||
using Blog.Core.FrameWork.IRepository;
|
using Blog.Core.IRepository;
|
||||||
namespace Blog.Core.FrameWork.Services
|
using Blog.Core.IRepository.UnitOfWork;
|
||||||
|
using Blog.Core.IServices;
|
||||||
|
using Blog.Core.Model.Models;
|
||||||
|
using Blog.Core.Services.BASE;
|
||||||
|
namespace Blog.Core.Services
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// IBaseRepository
|
/// IBaseRepository
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
IsNullable = row.Field<bool>("IsNullable"),
|
IsNullable = row.Field<bool>("IsNullable"),
|
||||||
ByteLength = row.Field<int>("ByteLength"),
|
ByteLength = row.Field<int>("ByteLength"),
|
||||||
CharLength = row.Field<int>("CharLength"),
|
CharLength = row.Field<int>("CharLength"),
|
||||||
|
Precision=row.Field<int>("Precision"),
|
||||||
Scale = row.Field<int>("Scale"),
|
Scale = row.Field<int>("Scale"),
|
||||||
Remark = row["Remark"].ToString()
|
Remark = row["Remark"].ToString()
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
@ -249,6 +250,8 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CharLength { get; set; }
|
public int CharLength { get; set; }
|
||||||
|
|
||||||
|
///精度长度
|
||||||
|
public int Precision{get;set;}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 小数位
|
/// 小数位
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -363,4 +366,3 @@
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user