91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3.07MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-09-29
  • 語言: 其他
  • 標簽: c#??enterprise??mvc4??linq??

資源簡介

CodeSmith生成MVC4項目工程模板V1.0.12.0920 模板工具:CodeSmith 6.5 CodeSmith生成Visual.Studio.2010.MVC4項目工程模板。 默認用戶已經(jīng)安裝了CodeSmith 6.5代碼生成工具。 根據(jù)輸入?yún)?shù),自動生成Visual Studio 2010 + MVC4 + EnterpriseLibrary5.0項目工程。 注意事項: 1:Visual Studio 2010需要安裝SP1。并安裝MVC4。具體操作請訪問微軟官方網(wǎng)站。 1:請在建立數(shù)據(jù)表時,給數(shù)據(jù)表的說明字段一個簡要說明。在*.cs文件生成時會自動寫入合理的注視內(nèi)容。 項目生成最終結(jié)構(gòu): 以默認參數(shù)為例,生成的項目結(jié)構(gòu)如下: onehelper.sln ├─onehelper.Controllers ├─onehelper.Core ├─onehelper.Dao ├─onehelper.Dto ├─onehelper.Service └─onehelper.webClient 模板的當(dāng)前前端使用yaml css framework 3.3. 操作流程: 1:下載net4.0_MVC4_Entlib_V1.0.1.rar文件。 2:解壓縮net4.0_MVC4_Entlib_V1.0.1.rar文件到指定路徑下。 3:打開codesmisth 6.5,導(dǎo)入解壓縮后的模板文件夾。 4:在CodeSmith Studio中,Template Explorer下,選擇Execute.cst,右鍵菜單Execute。 5:在CodeSmith的執(zhí)行窗口中設(shè)置參數(shù)如下: 1.名稱空間 RootNamespace ---------> 根名稱空間 ClientNamespace -------> 客戶端名稱空間 ControllerNamespace ---> 控制器名稱空間 CoreNamespace ---------> 核心名稱空間 DaoNamespace ----------> 數(shù)據(jù)操作名稱空間 DtoNamespace ----------> 傳輸實體名稱空間 ServiceNamespace ------> 服務(wù)業(yè)務(wù)名稱空間 2.數(shù)據(jù)庫(數(shù)據(jù)庫中的表字段要有注釋!) Database --------------> 指定一個數(shù)據(jù)庫 ExcludeTables ---------> 指定一個或多個數(shù)據(jù)表 PrefixLength ----------> 數(shù)據(jù)表前綴截取長度 TablePrefixes ---------> 3.開發(fā)者信息(將作為類注釋存在) Author ----------------> 開發(fā)者姓名 CompanyName -----------> 公司名稱 SystemName ------------> 系統(tǒng)名稱 4.雜項(項目工程生成路徑) OutputDirectory -------> 項目工程生成路徑 版本說明: =============================================================== 版本號:V1.0.12.0920 =============================================================== 修改模板生成語法符合codesmisth 6.5的新語法。 針對.net framework4.0進行了修改。 模板的前端: 暫時添加進了yaml css framework 4.0.1.(*此處不需要可以刪除*) =============================================================== 版本號:V1.0.2 =============================================================== 請在建立數(shù)據(jù)表時,給數(shù)據(jù)表的說明字段一個簡要說明。 添加了版本操作詳細說明。 存在問題: 生成的web工程不能被打開,需要手動添加到項目工程中。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Diagnostics;
using?System.Data;
using?System.IO;
using?System.Text;
using?CodeSmith.Engine;
using?SchemaExplorer;

namespace?Generator
{
public?class?GeneratorHelper{

///?
????????///?創(chuàng)建器的實例
????????///?

????????private?static?GeneratorHelper?instance?=?null;

????????///?
????????///?創(chuàng)建器實例化
????????///?

????????///?創(chuàng)建器
????????public?static?GeneratorHelper?GetInstance()
????????{
????????????if?(instance?==?null)
{
????????????????instance?=?new?GeneratorHelper();
}

????????????return?instance;
????????}

///?
///?創(chuàng)建指定路徑下文件夾
///?

///?路徑
public?void?SafeCreateDirectory(string?path)
{
if?(!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
????????Debug.WriteLine(string.Format(“create?time?at-{0}?|?create?folder?at-{1}“?DateTime.Now.ToString()?path));
}
}

///?
///?復(fù)制指定路徑下文件到目標文件夾
///?

///?源路徑
///?目標路徑
public?void?SafeCopyDirectory(string?source?string?target)
{
????Debug.WriteLine(string.Format(“source?path-{0}“?source));
????Debug.WriteLine(string.Format(“target?path-{0}“?target));
string?[]?files?=System.IO.Directory.GetFiles(source);
????
????for?(int?i=0;?i? ????{??
????????System.IO.FileInfo?file?=?new?System.IO.FileInfo(files[i]);???
????????file.CopyTo(target?+?“\\“?+?file.Name?true);
????????Debug.WriteLine(string.Format(“copy?time?at-{0}?|?target?path-{1}“?DateTime.Now.ToString()?target?+?“\\“?+?file.Name));
????}
}

///?
///?復(fù)制文件到指定路徑
///?

///?源路徑
///?目標路徑
public?void?SafeCopyFile(string?source?string?target)
{
????Debug.WriteLine(string.Format(“source?path-{0}“?source));
System.IO.FileInfo?files?=?new?System.IO.FileInfo(source);
files.CopyTo(target?true);
}

///?
///?復(fù)制指定路徑下文件夾到指定目錄中
///?

///?源路徑
///?目標路徑
????????public?void?SafeCopyFiles(string?source?string?target)
????????{
????????????//?如果目標目錄存在
????????????if?(System.IO.Directory.Exists(target))
????????????{
????????????????//?目標目錄直接刪除
????????????????System.IO.Directory.Delete(target?true);
???? Debug.WriteLine(string.Format(“delete?target?path-{0}“?target));
????????????????//?刪除后,重新創(chuàng)建目標文件夾
????????????????System.IO.Directory.CreateDirectory(target);
???? Debug.WriteLine(string.Format(“Create?target?path-{0}“?target));
????????????}
????????????else
????????????{
????????????????//?目標文件夾不存在,創(chuàng)建文件夾
????????????????System.IO.Directory.CreateDirectory(target);
???? Debug.WriteLine(string.Format(“Create?target?path-

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????102490??2012-09-21?13:43??net4.0?framework?Enterprise\Execute.cst

?????文件???????9161??2012-09-21?12:17??net4.0?framework?Enterprise\Generator.cs

?????文件??????14194??2012-05-23?10:15??net4.0?framework?Enterprise\onehelper.Controllers\AccountController.cst

?????文件???????4279??2012-05-21?09:21??net4.0?framework?Enterprise\onehelper.Controllers\baseController.cst

?????文件???????5913??2012-05-21?09:58??net4.0?framework?Enterprise\onehelper.Controllers\ControllerProj.cst

?????文件???????2685??2012-05-21?14:41??net4.0?framework?Enterprise\onehelper.Controllers\HomeController.cst

?????文件???????2844??2012-01-29?18:46??net4.0?framework?Enterprise\onehelper.Controllers\Properties\AssemblyInfo.cst

?????文件???????4083??2011-12-13?10:10??net4.0?framework?Enterprise\onehelper.Core\Caching\Cachebase.cst

?????文件???????2238??2011-12-13?10:10??net4.0?framework?Enterprise\onehelper.Core\Caching\IBusinessCache.cst

?????文件???????3763??2011-12-13?10:30??net4.0?framework?Enterprise\onehelper.Core\Common\AppSettings.cst

?????文件???????2578??2011-12-13?10:38??net4.0?framework?Enterprise\onehelper.Core\Common\EventArgsbase.cst

?????文件???????2696??2011-12-13?10:38??net4.0?framework?Enterprise\onehelper.Core\Common\FailedEventArgs.cst

?????文件???????4129??2011-12-13?10:18??net4.0?framework?Enterprise\onehelper.Core\Common\Json\JsonFormaterUtils.cst

?????文件???????2467??2011-12-13?10:40??net4.0?framework?Enterprise\onehelper.Core\Common\SaveAction.cst

?????文件???????2679??2011-12-13?10:43??net4.0?framework?Enterprise\onehelper.Core\Common\SavedEventArgs.cst

?????文件???????5212??2011-12-13?10:51??net4.0?framework?Enterprise\onehelper.Core\Common\Utils.cst

?????文件???????9334??2012-05-23?08:46??net4.0?framework?Enterprise\onehelper.Core\CoreProj.cst

?????文件???????6761??2012-05-21?09:51??net4.0?framework?Enterprise\onehelper.Core\Injection\ContainerContextbase.cst

?????文件???????2826??2012-05-21?09:50??net4.0?framework?Enterprise\onehelper.Core\Injection\ContainerEventArgs.cst

?????文件???????3119??2012-05-21?09:51??net4.0?framework?Enterprise\onehelper.Core\Injection\ContainerFailedEventArgs.cst

?????文件???????2584??2012-05-23?09:41??net4.0?framework?Enterprise\onehelper.Core\Injection\ContainerManager.cst

?????文件???????2681??2012-05-23?09:41??net4.0?framework?Enterprise\onehelper.Core\Injection\ContainerType.cst

?????文件???????3567??2012-05-23?09:42??net4.0?framework?Enterprise\onehelper.Core\Injection\IContainerContext.cst

?????文件???????5474??2012-05-21?09:51??net4.0?framework?Enterprise\onehelper.Core\Injection\Unity\UnityContainerContext.cst

?????文件???????2790??2012-01-23?20:19??net4.0?framework?Enterprise\onehelper.Core\Properties\AssemblyInfo.cst

?????文件???????2568??2011-12-14?10:12??net4.0?framework?Enterprise\onehelper.Core\Repository\IRepositoryContext.cst

?????文件???????7508??2011-12-14?10:09??net4.0?framework?Enterprise\onehelper.Core\Repository\Repositorybase.cst

?????文件???????4938??2011-12-14?10:18??net4.0?framework?Enterprise\onehelper.Core\Repository\RepositoryContext.cst

?????文件???????7717??2012-05-22?09:57??net4.0?framework?Enterprise\onehelper.Core\Resources.Designer.cst

?????文件???????7508??2012-05-22?09:56??net4.0?framework?Enterprise\onehelper.Core\Resources.resx.cst

............此處省略421個文件信息

評論

共有 條評論