/// <summary> /// 以视图对象为原型创建一个表对象实例 /// </summary> /// <param name="view"></param> public SOTable(SOView view) { this.ColumnList = view.ColumnList; this.Comment = view.Comment ?? string.Empty; this.Name = view.Name; this.Owner = view.Owner; this.Parent = view.Parent; this.SchemaName = view.SchemaName; this.SqlText = view.SqlText; }
public SOView GetView(string viewName) { List <SOView> list = this.ViewList; SOView view = null; foreach (SOView item in list) { if (item.Name == viewName) { view = item; break; } } return(view); }