📄 class.format
字号:
//------------------------------------------------------------------------------
// <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -