222
schangxiang@126.com
2025-05-04 90776aadd4531fa054c8679d240edfaba91e005f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace GenerateCode_GEBrilliantFactory
{
    /// <summary>
    /// 生成Services的接口文件
    /// </summary>
    public class Services_Interface_Generate : BaseGenerate
    {
        public static string CreateText(string Wcf_NameSpacePath, string Modulelogo, string entityName,
            string ChinaComment, string addEntityParam)
        {
            var str = TextHelper.ReadText(@"Templete\Services接口模板.txt");
 
            str = str.Replace("$Wcf_NameSpacePath$", Wcf_NameSpacePath);//WCF项目的命名空间
            str = str.Replace("$ChinaComment$", ChinaComment);//中文注释
            str = str.Replace("$EntityName$", entityName);//实体类名
            str = str.Replace("$Modulelogo$", Modulelogo);//模块简写
            str = str.Replace("$AddEntityParam$", addEntityParam);
 
            CommonReplace(ref str);
 
            return str;
        }
    }
}