Ai
4 Star 11 Fork 8

鸣飞/BuildH框架代码开发辅助工具

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ServerInfo.cs 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
鸣飞 提交于 2019-02-12 16:31 +08:00 . xxx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CodeGenerator.Core
{
/// <summary>
/// 数据库配置信息
/// </summary>
public class ServerInfo
{
/// <summary>
/// 别名
/// </summary>
public string Alias { get; set; }
/// <summary>
/// 数据库类型
/// </summary>
public string DatabaseType { get; set; }
/// <summary>
/// 服务器
/// </summary>
public string ServerName { get; set; }
/// <summary>
/// 连接字符串
/// </summary>
public string ConnectString { get; set; }
/// <summary>
/// 默认数据库
/// </summary>
public string DatabaseName { get; set; }
public DatabaseType DBType
{
get
{
switch (DatabaseType)
{
case "SqlServer":
return Core.DatabaseType.SqlServer;
case "Sqlite":
return Core.DatabaseType.Sqlite;
case "MySql":
return Core.DatabaseType.MySql;
case "Oracle":
return Core.DatabaseType.Oracle;
case "PostgreSQL":
return Core.DatabaseType.PostgreSQL;
default:
return Core.DatabaseType.SqlServer;
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/mf_/CodeGenerator.git
git@gitee.com:mf_/CodeGenerator.git
mf_
CodeGenerator
BuildH框架代码开发辅助工具
master

搜索帮助