Mercurial > pub > bltoolkit
comparison Tools/DocGen/IndexItem.cs @ 0:f990fcb411a9
Копия текущей версии из github
| author | cin |
|---|---|
| date | Thu, 27 Mar 2014 21:46:09 +0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f990fcb411a9 |
|---|---|
| 1 using System; | |
| 2 using System.Collections.Generic; | |
| 3 | |
| 4 namespace DocGen | |
| 5 { | |
| 6 class IndexItem | |
| 7 { | |
| 8 public IndexItem(string name) | |
| 9 { | |
| 10 Name = name; | |
| 11 | |
| 12 var ss = name.Split(' '); | |
| 13 | |
| 14 if (ss.Length > 1) | |
| 15 { | |
| 16 switch (ss[1]) | |
| 17 { | |
| 18 case "attribute" : | |
| 19 case "aspect" : Text.Add("[" + ss[0]); | |
| 20 Text.Add(", " + ss[0]); break; | |
| 21 case "method" : Text.Add("." + ss[0] + "("); | |
| 22 Text.Add("." + ss[0] + "<"); | |
| 23 Text.Add(" " + ss[0] + "("); | |
| 24 Text.Add(" " + ss[0] + "<"); break; | |
| 25 case "class" : | |
| 26 case "enum" : | |
| 27 case "component" : Text.Add("new " + ss[0]); | |
| 28 Text.Add(": " + ss[0]); | |
| 29 Text.Add("<" + ss[0] + ">"); | |
| 30 Text.Add("<" + ss[0] + ","); | |
| 31 Text.Add(" " + ss[0] + "."); | |
| 32 Text.Add(" " + ss[0] + "<"); | |
| 33 Text.Add("(" + ss[0] + "."); | |
| 34 Text.Add("(" + ss[0] + "<"); break; | |
| 35 case "property" : Text.Add(ss[0] + " ="); break; | |
| 36 default : Text.Add(ss[0]); break; | |
| 37 } | |
| 38 } | |
| 39 else | |
| 40 { | |
| 41 Text.Add(ss[0]); | |
| 42 } | |
| 43 } | |
| 44 | |
| 45 public IndexItem(string name, params string[] text) | |
| 46 { | |
| 47 Name = name; | |
| 48 Array.ForEach(text, Text.Add); | |
| 49 } | |
| 50 | |
| 51 public string Name; | |
| 52 public List<string> Text = new List<string>(); | |
| 53 public List<FileItem> Files = new List<FileItem>(); | |
| 54 | |
| 55 public static List<IndexItem> Index; | |
| 56 | |
| 57 static IndexItem() | |
| 58 { | |
| 59 Index = new List<IndexItem> | |
| 60 { | |
| 61 new IndexItem("Async aspect"), | |
| 62 new IndexItem("Cache aspect"), | |
| 63 new IndexItem("ClearCache aspect"), | |
| 64 new IndexItem("NoCache attribute"), | |
| 65 new IndexItem("Counter aspect"), | |
| 66 new IndexItem("Logging aspect", "[Log"), | |
| 67 new IndexItem("Mixin aspect"), | |
| 68 new IndexItem("NotNull attribute"), | |
| 69 | |
| 70 new IndexItem("ObjectBinder component", "ObjectBinder"), | |
| 71 new IndexItem("DbManager component"), | |
| 72 new IndexItem("DataProvider class", "DataProvider"), | |
| 73 new IndexItem("MapResultSet class"), | |
| 74 new IndexItem("ScalarSourceType enum"), | |
| 75 new IndexItem("AddRelation method"), | |
| 76 new IndexItem("AddConnectionString method"), | |
| 77 new IndexItem("AddDataProvider method"), | |
| 78 new IndexItem("AssignParameterValues method"), | |
| 79 new IndexItem("CreateParameters method"), | |
| 80 new IndexItem("SetCommand method"), | |
| 81 new IndexItem("SetSpCommand method"), | |
| 82 new IndexItem("Parameter method"), | |
| 83 new IndexItem("OutputParameter method"), | |
| 84 new IndexItem("Prepare method"), | |
| 85 new IndexItem("Close method"), | |
| 86 new IndexItem("ExecuteDataSet method"), | |
| 87 new IndexItem("ExecuteDataTable method"), | |
| 88 new IndexItem("ExecuteDictionary method"), | |
| 89 new IndexItem("ExecuteForEach method"), | |
| 90 new IndexItem("ExecuteList method"), | |
| 91 new IndexItem("ExecuteNonQuery method"), | |
| 92 new IndexItem("ExecuteObject method"), | |
| 93 new IndexItem("ExecuteReader method"), | |
| 94 new IndexItem("ExecuteResultSet method"), | |
| 95 new IndexItem("ExecuteScalar method"), | |
| 96 new IndexItem("ExecuteScalarDictionary method"), | |
| 97 new IndexItem("ExecuteScalarList method"), | |
| 98 | |
| 99 new IndexItem("DataAccessor class"), | |
| 100 new IndexItem("Abstract accessors", "DataAccessor"), | |
| 101 new IndexItem("SqlQuery class"), | |
| 102 new IndexItem("SprocQuery class"), | |
| 103 new IndexItem("BeginTransaction method"), | |
| 104 new IndexItem("CommitTransaction method"), | |
| 105 new IndexItem("CreateDbManager method"), | |
| 106 new IndexItem("DataAccessor class"), | |
| 107 new IndexItem("GetDefaultSpName method"), | |
| 108 new IndexItem("GetTableName method"), | |
| 109 new IndexItem("Insert method"), | |
| 110 new IndexItem("PrepareSqlQuery method"), | |
| 111 new IndexItem("SelectByKey method"), | |
| 112 new IndexItem("SelectAll method"), | |
| 113 new IndexItem("TableName attribute"), | |
| 114 new IndexItem("ActionName attribute"), | |
| 115 new IndexItem("ActionSprocName attribute"), | |
| 116 new IndexItem("ActualType attribute"), | |
| 117 new IndexItem("CommandBehavior attribute"), | |
| 118 new IndexItem("Destination attribute"), | |
| 119 new IndexItem("Direction attribute"), | |
| 120 new IndexItem("DiscoverParameters attribute"), | |
| 121 new IndexItem("DataSetTable attribute"), | |
| 122 new IndexItem("Format attribute"), | |
| 123 new IndexItem("Index attribute"), | |
| 124 new IndexItem("ObjectType attribute"), | |
| 125 new IndexItem("NonUpdatable attribute"), | |
| 126 new IndexItem("ParamDbType attribute"), | |
| 127 new IndexItem("ParamName attribute"), | |
| 128 new IndexItem("ParamNullValue attribute"), | |
| 129 new IndexItem("ParamSize attribute"), | |
| 130 new IndexItem("PrimaryKey attribute"), | |
| 131 new IndexItem("ScalarFieldName attribute"), | |
| 132 new IndexItem("ScalarSource attribute"), | |
| 133 new IndexItem("SprocName attribute"), | |
| 134 new IndexItem("TableName attribute"), | |
| 135 | |
| 136 new IndexItem("EditableObject class"), | |
| 137 | |
| 138 new IndexItem("IsDynamic property"), | |
| 139 new IndexItem("Extensions property"), | |
| 140 | |
| 141 new IndexItem("CompoundValue class"), | |
| 142 new IndexItem("TypeAccessor class"), | |
| 143 new IndexItem("TypeExtension class"), | |
| 144 new IndexItem("CreateInstance method"), | |
| 145 new IndexItem("GetExtensions method") | |
| 146 }; | |
| 147 } | |
| 148 } | |
| 149 } |
