class.format
来自「客户关系管理系统ASP.NET+VB.NET编程完整程序!」· FORMAT 代码 · 共 48 行
FORMAT
48 行
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using System;
using System.Data;
using System.Data.SqlTypes;
namespace {0}
{
/// <summary>
/// Wraps DataSet, creating all Tables, Columns, Constraints and Relations
/// </summary>
public class OrmDataSet
{
private OrmDataSet(){}
/// <summary>
/// Creates a DataSet with representing the databases schema
/// </summary>
/// <returns></returns>
public static DataSet NewDataSet()
{
DataSet ds = new DataSet("OrmDataSet");
try
{
InitDb(ds);
ds.EnforceConstraints = true;
ds.CaseSensitive = false;
}
catch(Exception ex)
{
throw new Exception("An invalid DataSet was detected.", ex);
}
return ds;
}
{1}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?