• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ISchemaBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ISchemaBase的典型用法代码示例。如果您正苦于以下问题:C# ISchemaBase类的具体用法?C# ISchemaBase怎么用?C# ISchemaBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ISchemaBase类属于命名空间,在下文中一共展示了ISchemaBase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: FormatAlter

        public static string FormatAlter(string ObjectType, string body, ISchemaBase item, Boolean quitSchemaBinding)
        {
            string prevText = null;
            try
            {
                prevText = (string)body.Clone();
                SearchItem sitem = FindCreate(ObjectType, item, prevText);
                Regex regAlter = new Regex("CREATE");

                if (!quitSchemaBinding)
                    return regAlter.Replace(sitem.Body, "ALTER", 1, sitem.FindPosition);
                    //return prevText.Substring(0, iFind) + "ALTER " + sitem.ObjectType + " " + prevText.Substring(iFind + sitem.ObjectType.Length + 7, prevText.Length - (iFind + sitem.ObjectType.Length + 7)).TrimStart();
                else
                {
                    string text = regAlter.Replace(sitem.Body, "ALTER", 1, sitem.FindPosition);
                    Regex regex = new Regex("WITH SCHEMABINDING", RegexOptions.IgnoreCase);
                    return regex.Replace(text, "");
                }
                //return "";
            }
            catch
            {
                return prevText;
            }
        }
开发者ID:pclancy,项目名称:ODBX,代码行数:25,代码来源:FormatCode.cs


示例2: CLRFunction

 public CLRFunction(ISchemaBase parent)
     : base(parent, Enums.ObjectType.CLRFunction, Enums.ScripActionType.AddFunction, Enums.ScripActionType.DropFunction)
 {
     parameters = new List<Parameter>();
     returnType = new Parameter();
     isAggrFunc = false;
 }
开发者ID:elayaraja007,项目名称:sql-dbdiff,代码行数:7,代码来源:CLRFunction.cs


示例3: Clone

 public override ISchemaBase Clone(ISchemaBase parent)
 {
     Index index = new Index(parent)
                       {
                           AllowPageLocks = this.AllowPageLocks,
                           AllowRowLocks = this.AllowRowLocks,
                           Columns = this.Columns.Clone(),
                           FillFactor = this.FillFactor,
                           FileGroup = this.FileGroup,
                           Id = this.Id,
                           IgnoreDupKey = this.IgnoreDupKey,
                           IsAutoStatistics = this.IsAutoStatistics,
                           IsDisabled = this.IsDisabled,
                           IsPadded = this.IsPadded,
                           IsPrimaryKey = this.IsPrimaryKey,
                           IsUniqueKey = this.IsUniqueKey,
                           Name = this.Name,
                           SortInTempDb = this.SortInTempDb,
                           Status = this.Status,
                           Type = this.Type,
                           Owner = this.Owner,
                           FilterDefintion = this.FilterDefintion
                       };
     ExtendedProperties.ForEach(item => index.ExtendedProperties.Add(item));
     return index;
 }
开发者ID:elayaraja007,项目名称:sql-dbdiff,代码行数:26,代码来源:Index.cs


示例4: AssemblyFile

 public AssemblyFile(ISchemaBase parent, AssemblyFile assemblyFile, Enums.ObjectStatusType status)
     : base(parent, Enums.ObjectType.AssemblyFile)
 {
     this.Name = assemblyFile.Name;
     this.content = assemblyFile.content;
     this.Status = status;
 }
开发者ID:modulexcite,项目名称:SQLoogle,代码行数:7,代码来源:AssemblyFile.cs


示例5: View

 public View(ISchemaBase parent)
     : base(parent, Enums.ObjectType.View, Enums.ScripActionType.AddView, Enums.ScripActionType.DropView)
 {
     Indexes = new SchemaList<Index, View>(this, ((Database)parent).AllObjects);
     Triggers = new SchemaList<Trigger, View>(this, ((Database)parent).AllObjects);
     CLRTriggers = new SchemaList<CLRTrigger, View>(this, ((Database)parent).AllObjects);
 }
开发者ID:mi-tettamanti,项目名称:opendbiff,代码行数:7,代码来源:View.cs


示例6: UserDataType

 public UserDataType(ISchemaBase parent)
     : base(parent, Enums.ObjectType.UserDataType)
 {
     Default = new Default(this);
     Rule = new Rule(this);
     Dependencys = new List<ObjectDependency>();
 }
开发者ID:elayaraja007,项目名称:sql-dbdiff,代码行数:7,代码来源:UserDataType.cs


示例7: Clone

 /// <summary>
 /// Clona el objeto en una nueva instancia.
 /// </summary>
 public override ISchemaBase Clone(ISchemaBase parent)
 {
     TableOption option = new TableOption(parent);
     option.Name = this.Name;
     option.Status = this.Status;
     option.Value = this.Value;
     return option;
 }
开发者ID:facingup,项目名称:opendbdiff,代码行数:11,代码来源:TableOption.cs


示例8: Clone

 public new Default Clone(ISchemaBase parent)
 {
     Default item = new Default(parent);
     item.Id = this.Id;
     item.Name = this.Name;
     item.Owner = this.Owner;
     item.Value = this.Value;
     return item;
 }
开发者ID:modulexcite,项目名称:SQLoogle,代码行数:9,代码来源:Default.cs


示例9: Clone

 public override ISchemaBase Clone(ISchemaBase parent)
 {
     Synonym item = new Synonym(parent);
     item.Id = this.Id;
     item.Name = this.Name;
     item.Owner = this.Owner;
     item.Value = this.Value;
     item.Guid = this.Guid;
     return item;
 }
开发者ID:pclancy,项目名称:ODBX,代码行数:10,代码来源:Synonym.cs


示例10: Clone

 public Rule Clone(ISchemaBase parent)
 {
     Rule item = new Rule(parent);
     item.Id = this.Id;
     item.Name = this.Name;
     item.Owner = this.Owner;
     item.Text = this.Text;
     item.Guid = this.Guid;
     return item;
 }
开发者ID:pclancy,项目名称:ODBX,代码行数:10,代码来源:Rule.cs


示例11: SqlAction

 public SqlAction(ISchemaBase item)
 {
     if ((item.ObjectType == Enums.ObjectType.Column) || (item.ObjectType == Enums.ObjectType.Index) || (item.ObjectType == Enums.ObjectType.Constraint))
         this.name = item.Name;
     else
         this.name = item.FullName;
     this.action = item.Status;
     this.type = item.ObjectType;
     childs = new List<SqlAction>();
 }
开发者ID:facingup,项目名称:opendbdiff,代码行数:10,代码来源:SqlAction.cs


示例12: Clone

 /// <summary>
 /// Clona el objeto en una nueva instancia.
 /// </summary>
 public override ISchemaBase Clone(ISchemaBase parent)
 {
     StoreProcedure item = new StoreProcedure(parent);
     item.Text = this.Text;
     item.Status = this.Status;
     item.Name = this.Name;
     item.Id = this.Id;
     item.Owner = this.Owner;
     item.Guid = this.Guid;
     return item;
 }
开发者ID:facingup,项目名称:opendbdiff,代码行数:14,代码来源:StoreProcedure.cs


示例13: Clone

 public override ISchemaBase Clone(ISchemaBase parent)
 {
     FileGroup file = new FileGroup(parent);
     file.IsDefaultFileGroup = this.IsDefaultFileGroup;
     file.IsReadOnly = this.IsReadOnly;
     file.Name = this.Name;
     file.Id = this.Id;
     file.Files = this.Files.Clone(file);
     file.Guid = this.Guid;
     file.IsFileStream = this.IsFileStream;
     return file;
 }
开发者ID:facingup,项目名称:opendbdiff,代码行数:12,代码来源:FileGroup.cs


示例14: Clone

 /// <summary>
 /// Clona el objeto en una nueva instancia.
 /// </summary>
 public new XMLSchema Clone(ISchemaBase parent)
 {
     XMLSchema item = new XMLSchema(parent);
     item.Text = this.Text;
     item.Status = this.Status;
     item.Name = this.Name;
     item.Id = this.Id;
     item.Owner = this.Owner;
     item.Guid = this.Guid;
     item.Dependencys = this.Dependencys;
     return item;
 }
开发者ID:modulexcite,项目名称:SQLoogle,代码行数:15,代码来源:XMLSchema.cs


示例15: Clone

 public new PartitionFunction Clone(ISchemaBase parent)
 {
     PartitionFunction item = new PartitionFunction(parent);
     item.Id = this.Id;
     item.IsBoundaryRight = this.IsBoundaryRight;
     item.Name = this.Name;
     item.Precision = this.Precision;
     item.Scale = this.Scale;
     item.Size = this.Size;
     item.Type = this.Type;
     this.Values.ForEach(value => { item.Values.Add(value); });
     return item;
 }
开发者ID:modulexcite,项目名称:SQLoogle,代码行数:13,代码来源:PartitionFunction.cs


示例16: Clone

 public override ISchemaBase Clone(ISchemaBase parent)
 {
     FileGroupFile file = new FileGroupFile(parent);
     file.Growth = this.Growth;
     file.Id = this.Id;
     file.IsPercentGrowth = this.IsPercentGrowth;
     file.IsSparse = this.IsSparse;
     file.MaxSize = this.MaxSize;
     file.Name = this.Name;
     file.PhysicalName = this.PhysicalName;
     file.Size = this.Size;
     file.Type = this.Type;
     return file;
 }
开发者ID:elayaraja007,项目名称:sql-dbdiff,代码行数:14,代码来源:FileGroupFile.cs


示例17: Clone

 /// <summary>
 /// Clona el objeto en una nueva instancia.
 /// </summary>
 public override ISchemaBase Clone(ISchemaBase parent)
 {
     Function item = new Function(parent);
     item.Text = this.Text;
     item.Status = this.Status;
     item.Name = this.Name;
     item.Id = this.Id;
     item.Owner = this.Owner;
     item.Guid = this.Guid;
     item.IsSchemaBinding = this.IsSchemaBinding;
     this.DependenciesIn.ForEach(dep => item.DependenciesIn.Add(dep));
     this.DependenciesOut.ForEach(dep => item.DependenciesOut.Add(dep));
     return item;
 }
开发者ID:elayaraja007,项目名称:sql-dbdiff,代码行数:17,代码来源:Function.cs


示例18: Clone

 /// <summary>
 /// Clona el objeto en una nueva instancia.
 /// </summary>
 public override ISchemaBase Clone(ISchemaBase parent)
 {
     View item = new View(parent);
     item.Text = this.Text;
     item.Status = this.Status;
     item.Name = this.Name;
     item.Id = this.Id;
     item.Owner = this.Owner;
     item.IsSchemaBinding = this.IsSchemaBinding;
     item.DependenciesIn  = this.DependenciesIn;
     item.DependenciesOut = this.DependenciesOut;
     item.Indexes = this.Indexes.Clone(item);
     item.Triggers = this.Triggers.Clone(item);
     return item;
 }
开发者ID:mi-tettamanti,项目名称:opendbiff,代码行数:18,代码来源:View.cs


示例19: Clone

 /// <summary>
 /// Clona el objeto en una nueva instancia.
 /// </summary>
 public override ISchemaBase Clone(ISchemaBase parent)
 {
     Trigger trigger = new Trigger(parent);
     trigger.Text = this.Text;
     trigger.Status = this.Status;
     trigger.Name = this.Name;
     trigger.IsDisabled = this.IsDisabled;
     trigger.InsteadOf = this.InsteadOf;
     trigger.NotForReplication = this.NotForReplication;
     trigger.Owner = this.Owner;
     trigger.Id = this.Id;
     trigger.IsDDLTrigger = this.IsDDLTrigger;
     trigger.Guid = this.Guid;
     return trigger;
 }
开发者ID:elayaraja007,项目名称:sql-dbdiff,代码行数:18,代码来源:Trigger.cs


示例20: Code

 public Code(ISchemaBase parent, Enums.ObjectType type, Enums.ScripActionType addAction, Enums.ScripActionType dropAction)
     : base(parent, type)
 {
     dependenciesIn = new List<String>();
     dependenciesOut = new List<String>();
     typeName = GetObjectTypeName(ObjectType);
     /*Por el momento, solo los Assemblys manejan deep de dependencias*/
     if (this.ObjectType == Enums.ObjectType.Assembly)
     {
         deepMax = 501;
         deepMin = 500;
     }
     this.addAction = addAction;
     this.dropAction = dropAction;
 }
开发者ID:facingup,项目名称:opendbdiff,代码行数:15,代码来源:Code.cs



注:本文中的ISchemaBase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISchemaElement类代码示例发布时间:2022-05-24
下一篇:
C# ISchema类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap