Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

init commit

  • Loading branch information...
commit 1dc138d88353e1094d61fab8cd75c63bf80c0975 0 parents
Nick Berardi authored
Showing with 85,829 additions and 0 deletions.
  1. +50,617 −0 Documentation/Installing OmniPortal.rtf
  2. +208 −0 ManagedFusion/License.html
  3. +53 −0 ManagedFusion/ManagedFusion.sln
  4. BIN  ManagedFusion/ManagedFusion.suo
  5. +10 −0 ManagedFusion/ManagedFusion.vssscc
  6. +72 −0 ManagedFusion/Source/Databases/ManagedFusion.xml
  7. +30 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Community.cs
  8. +28 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Container.cs
  9. +14 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/ContainerPortletLink.cs
  10. +18 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/ITable.cs
  11. +100 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/ManagedFusion-SqlServer2000.csproj
  12. +13 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/ManagedFusion-SqlServer2000.csproj.user
  13. +10 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/ManagedFusion-SqlServer2000.csproj.vspscc
  14. +30 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Portlet.cs
  15. +14 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/PortletRole.cs
  16. +35 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Properties/AssemblyInfo.cs
  17. +49 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Section.cs
  18. +14 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/SectionRole.cs
  19. +37 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Site.cs
  20. +1,221 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/SqlServerProvider.cs
  21. +34 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/TableCollection.cs
  22. +749 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/Community.cs
  23. +654 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/CommunityProperty.cs
  24. +685 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/Container.cs
  25. +621 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/ContainerPortletLink.cs
  26. +734 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/Portlet.cs
  27. +654 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/PortletProperty.cs
  28. +621 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/PortletRole.cs
  29. +1,155 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/Section.cs
  30. +661 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/SectionContainerLink.cs
  31. +654 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/SectionProperty.cs
  32. +621 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/SectionRole.cs
  33. +879 −0 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/Site.cs
  34. BIN  ManagedFusion/Source/Databases/SqlServer2000/Provider/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  35. BIN  ManagedFusion/Source/Databases/SqlServer2000/Provider/obj/Debug/ResolveAssemblyReference.cache
  36. +4 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Connections.txt
  37. +88 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Data.sql
  38. BIN  ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Database.sql
  39. +108 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/Community.sql
  40. +113 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/CommunityProperty.sql
  41. +104 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/Container.sql
  42. +105 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/ContainerPortletLink.sql
  43. +108 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/Portlet.sql
  44. +113 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/PortletProperty.sql
  45. +105 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/PortletRole.sql
  46. +148 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/Section.sql
  47. +109 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/SectionContainerLink.sql
  48. +113 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/SectionProperty.sql
  49. +105 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/SectionRole.sql
  50. +124 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Stored Procedures/Site.sql
  51. BIN  ManagedFusion/Source/Databases/SqlServer2000/Scripts/Create Scripts/Tables.sql
  52. BIN  ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbmdl
  53. +38 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbp
  54. +10 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbp.vspscc
  55. +169 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbproj
  56. +169 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbproj.old
  57. +8 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbproj.schemaview
  58. +3 −0  ManagedFusion/Source/Databases/SqlServer2000/Scripts/ManagedFusion-SqlServer2000-Scripts.dbproj.user
  59. +6 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqlcmdvars
  60. +6 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqlcmdvars.old
  61. +14 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqldeployment
  62. +14 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqldeployment.old
  63. +42 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqlpermissions
  64. +42 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqlpermissions.old
  65. +52 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqlsettings
  66. +52 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Properties/Database.sqlsettings.old
  67. +11 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Scripts/Post-Deployment/Script.PostDeployment.sql
  68. +11 −0 ManagedFusion/Source/Databases/SqlServer2000/Scripts/Scripts/Pre-Deployment/Script.PreDeployment.sql
  69. +1,523 −0 ManagedFusion/Source/Databases/Template/CommonTemplateCode.cs
  70. +156 −0 ManagedFusion/Source/Databases/Template/DataLayerTemplate.cst
  71. +827 −0 ManagedFusion/Source/Databases/Template/Entity.cst
  72. +138 −0 ManagedFusion/Source/Databases/Template/EntityStoredProcedure.cst
  73. +317 −0 ManagedFusion/Source/Databases/Template/EntityView.cst
  74. +25 −0 ManagedFusion/Source/Databases/Template/ITable.cst
  75. +41 −0 ManagedFusion/Source/Databases/Template/TableCollection.cst
  76. +505 −0 ManagedFusion/Source/ManagedFusion/CacheManager.cs
  77. +272 −0 ManagedFusion/Source/ManagedFusion/Common.cs
  78. +278 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityConfiguration.cs
  79. +129 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityConfigurationCollection.cs
  80. +22 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityConfigurationManagerSection.cs
  81. +48 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityConfigurationProvider.cs
  82. +26 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityConfigurationProviderCollection.cs
  83. +65 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityConfigurations.cs
  84. +22 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityPathManagerSection.cs
  85. +702 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityPathProvider.cs
  86. +26 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityPathProviderCollection.cs
  87. +50 −0 ManagedFusion/Source/ManagedFusion/Configuration/CommunityPaths.cs
  88. +22 −0 ManagedFusion/Source/ManagedFusion/Configuration/Flat/FlatConfigurationProvider.cs
  89. +19 −0 ManagedFusion/Source/ManagedFusion/Configuration/Flat/FlatPathProvider.cs
  90. +141 −0 ManagedFusion/Source/ManagedFusion/Configuration/Folder/FolderConfigurationProvider.cs
  91. +68 −0 ManagedFusion/Source/ManagedFusion/Configuration/Folder/FolderPathProvider.cs
  92. +32 −0 ManagedFusion/Source/ManagedFusion/Configuration/ManagedFusionSectionGroup.cs
  93. +107 −0 ManagedFusion/Source/ManagedFusion/Configuration/PortalSettings.Designer.cs
  94. +33 −0 ManagedFusion/Source/ManagedFusion/Configuration/PortalSettings.settings
  95. +113 −0 ManagedFusion/Source/ManagedFusion/Containers/ContainerHolder.cs
  96. +28 −0 ManagedFusion/Source/ManagedFusion/Data/DatabaseManagerSection.cs
  97. +51 −0 ManagedFusion/Source/ManagedFusion/Data/DatabaseProvider.cs
  98. +26 −0 ManagedFusion/Source/ManagedFusion/Data/DatabaseProviderCollection.cs
  99. +60 −0 ManagedFusion/Source/ManagedFusion/Data/Databases.cs
  100. +345 −0 ManagedFusion/Source/ManagedFusion/Data/PortalDatabaseProvider.cs
  101. +32 −0 ManagedFusion/Source/ManagedFusion/ExpirationType.cs
  102. +126 −0 ManagedFusion/Source/ManagedFusion/FormActionFilter.cs
  103. +397 −0 ManagedFusion/Source/ManagedFusion/ManagedFusion.csproj
  104. +14 −0 ManagedFusion/Source/ManagedFusion/ManagedFusion.csproj.user
  105. +10 −0 ManagedFusion/Source/ManagedFusion/ManagedFusion.csproj.vspscc
  106. +24 −0 ManagedFusion/Source/ManagedFusion/ManagedFusion.sln
  107. BIN  ManagedFusion/Source/ManagedFusion/ManagedFusion.snk
  108. +25 −0 ManagedFusion/Source/ManagedFusion/Modules/AuthorizeEvent.cs
  109. +142 −0 ManagedFusion/Source/ManagedFusion/Modules/Configuration/ConfigurationPage.cs
  110. +40 −0 ManagedFusion/Source/ManagedFusion/Modules/Configuration/ConfigurationSetup.cs
  111. +91 −0 ManagedFusion/Source/ManagedFusion/Modules/Configuration/ConfigurationTask.cs
  112. +98 −0 ManagedFusion/Source/ManagedFusion/Modules/Configuration/ModuleConfigurationDocument.cs
  113. +63 −0 ManagedFusion/Source/ManagedFusion/Modules/ErrorEvent.cs
  114. +58 −0 ManagedFusion/Source/ManagedFusion/Modules/LoadModuleEvent.cs
  115. +39 −0 ManagedFusion/Source/ManagedFusion/Modules/LoadSyndicationEvent.cs
  116. +44 −0 ManagedFusion/Source/ManagedFusion/Modules/ModuleAdminAttribute.cs
  117. +85 −0 ManagedFusion/Source/ManagedFusion/Modules/ModuleAttribute.cs
  118. +672 −0 ManagedFusion/Source/ManagedFusion/Modules/ModuleBase.cs
  119. +33 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleElement.cs
  120. +102 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleFeed.cs
  121. +40 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleFeedHandler.cs
  122. +33 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleFeedProvider.cs
  123. +98 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleSitemap.cs
  124. +40 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleSitemapHandler.cs
  125. +33 −0 ManagedFusion/Source/ManagedFusion/Modules/Syndication/ModuleSitemapProvider.cs
  126. +241 −0 ManagedFusion/Source/ManagedFusion/PageBuilder.cs
  127. +69 −0 ManagedFusion/Source/ManagedFusion/PortalHandlerFactory.cs
  128. +340 −0 ManagedFusion/Source/ManagedFusion/PortalModule.cs
  129. +137 −0 ManagedFusion/Source/ManagedFusion/PortalPage.cs
  130. +108 −0 ManagedFusion/Source/ManagedFusion/PortalProperties.cs
  131. +84 −0 ManagedFusion/Source/ManagedFusion/PortalSiteMapProvider.cs
  132. +44 −0 ManagedFusion/Source/ManagedFusion/Portlets/PortletAdminAttribute.cs
  133. +57 −0 ManagedFusion/Source/ManagedFusion/Portlets/PortletAttribute.cs
  134. +59 −0 ManagedFusion/Source/ManagedFusion/Portlets/PortletUserControl.cs
  135. +106 −0 ManagedFusion/Source/ManagedFusion/Properties/AssemblyInfo.cs
  136. +162 −0 ManagedFusion/Source/ManagedFusion/Properties/Resources.Designer.cs
  137. +153 −0 ManagedFusion/Source/ManagedFusion/Properties/Resources.resx
  138. +26 −0 ManagedFusion/Source/ManagedFusion/Properties/Settings.Designer.cs
  139. +6 −0 ManagedFusion/Source/ManagedFusion/Properties/Settings.settings
  140. +40 −0 ManagedFusion/Source/ManagedFusion/SecureSkinAttribute.cs
  141. +30 −0 ManagedFusion/Source/ManagedFusion/Security/NotAuthenticatedIdentity.cs
  142. +51 −0 ManagedFusion/Source/ManagedFusion/Security/Permissions.cs
  143. +42 −0 ManagedFusion/Source/ManagedFusion/Security/Portal/PortalPortletSecurityProvider.cs
  144. +57 −0 ManagedFusion/Source/ManagedFusion/Security/Portal/PortalSectionSecurityProvider.cs
  145. +32 −0 ManagedFusion/Source/ManagedFusion/Security/PortalRole.cs
  146. +59 −0 ManagedFusion/Source/ManagedFusion/Security/PortletSecurity.cs
  147. +22 −0 ManagedFusion/Source/ManagedFusion/Security/PortletSecurityManagerSection.cs
  148. +19 −0 ManagedFusion/Source/ManagedFusion/Security/PortletSecurityProvider.cs
  149. +26 −0 ManagedFusion/Source/ManagedFusion/Security/PortletSecurityProviderCollection.cs
  150. +59 −0 ManagedFusion/Source/ManagedFusion/Security/SectionSecurity.cs
  151. +22 −0 ManagedFusion/Source/ManagedFusion/Security/SectionSecurityManagerSection.cs
  152. +22 −0 ManagedFusion/Source/ManagedFusion/Security/SectionSecurityProvider.cs
  153. +26 −0 ManagedFusion/Source/ManagedFusion/Security/SectionSecurityProviderCollection.cs
  154. +12 −0 ManagedFusion/Source/ManagedFusion/Security/UnauthorizedAccessException.cs
  155. +45 −0 ManagedFusion/Source/ManagedFusion/SkinAttribute.cs
  156. +115 −0 ManagedFusion/Source/ManagedFusion/SkinnedUserControl.cs
  157. +91 −0 ManagedFusion/Source/ManagedFusion/SkinnedWebControl.cs
  158. +264 −0 ManagedFusion/Source/ManagedFusion/Syndication/AtomFeed/AtomFeed.cs
  159. +41 −0 ManagedFusion/Source/ManagedFusion/Syndication/AtomFeed/AtomFeedHandler.cs
  160. +24 −0 ManagedFusion/Source/ManagedFusion/Syndication/AtomFeed/AtomFeedProvider.cs
  161. +186 −0 ManagedFusion/Source/ManagedFusion/Syndication/BaseSyndicationHandler.cs
  162. +53 −0 ManagedFusion/Source/ManagedFusion/Syndication/CacheItem.cs
  163. +42 −0 ManagedFusion/Source/ManagedFusion/Syndication/Category.cs
  164. +49 −0 ManagedFusion/Source/ManagedFusion/Syndication/ChangeFrequency.cs
  165. +43 −0 ManagedFusion/Source/ManagedFusion/Syndication/Content.cs
  166. +44 −0 ManagedFusion/Source/ManagedFusion/Syndication/CustomField.cs
  167. +183 −0 ManagedFusion/Source/ManagedFusion/Syndication/Entry.cs
  168. +56 −0 ManagedFusion/Source/ManagedFusion/Syndication/Feed.cs
  169. +43 −0 ManagedFusion/Source/ManagedFusion/Syndication/Generator.cs
  170. +24 −0 ManagedFusion/Source/ManagedFusion/Syndication/ISyndication.cs
  171. +77 −0 ManagedFusion/Source/ManagedFusion/Syndication/Link.cs
  172. +39 −0 ManagedFusion/Source/ManagedFusion/Syndication/LinkRelationship.cs
  173. +48 −0 ManagedFusion/Source/ManagedFusion/Syndication/Person.cs
  174. +89 −0 ManagedFusion/Source/ManagedFusion/Syndication/Sitemap/Sitemap.cs
  175. +36 −0 ManagedFusion/Source/ManagedFusion/Syndication/Sitemap/SitemapHandler.cs
  176. +24 −0 ManagedFusion/Source/ManagedFusion/Syndication/Sitemap/SitemapProvider.cs
  177. +60 −0 ManagedFusion/Source/ManagedFusion/Syndication/SitemapIndex/SitemapIndex.cs
  178. +36 −0 ManagedFusion/Source/ManagedFusion/Syndication/SitemapIndex/SitemapIndexHandler.cs
  179. +23 −0 ManagedFusion/Source/ManagedFusion/Syndication/SitemapIndex/SitemapIndexProvider.cs
  180. +141 −0 ManagedFusion/Source/ManagedFusion/Syndication/Source.cs
  181. +16 −0 ManagedFusion/Source/ManagedFusion/Syndication/SyndicationManagerSection.cs
  182. +21 −0 ManagedFusion/Source/ManagedFusion/Syndication/SyndicationProvider.cs
  183. +44 −0 ManagedFusion/Source/ManagedFusion/Syndication/SyndicationProviderCollection.cs
  184. +44 −0 ManagedFusion/Source/ManagedFusion/Syndication/SyndicationWriter.cs
  185. +31 −0 ManagedFusion/Source/ManagedFusion/Syndication/Syndications.cs
  186. +35 −0 ManagedFusion/Source/ManagedFusion/Syndication/Text.cs
  187. +73 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/CommunityCollection.cs
  188. +61 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/CommunityPropertyCollection.cs
  189. +64 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/CommunityThemeCollection.cs
  190. +86 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/ContainerCollection.cs
  191. +76 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/ModuleCollection.cs
  192. +179 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/PortalTypeCollection.cs
  193. +52 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/PortletCollection.cs
  194. +61 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/PortletModuleDataCollection.cs
  195. +61 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/PortletPropertyCollection.cs
  196. +111 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/RolesPermissionsDictionary.cs
  197. +78 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/RolesTasksDictionary.cs
  198. +92 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/SectionCollection.cs
  199. +61 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/SectionMetaPropertyCollection.cs
  200. +61 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/SectionModuleDataCollection.cs
  201. +61 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/SectionPropertyCollection.cs
  202. +73 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/SiteCollection.cs
  203. +81 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/StyleCollection.cs
  204. +171 −0 ManagedFusion/Source/ManagedFusion/Types/Collections/ThemeCollection.cs
  205. +279 −0 ManagedFusion/Source/ManagedFusion/Types/CommunityInfo.cs
  206. +203 −0 ManagedFusion/Source/ManagedFusion/Types/ContainerInfo.cs
  207. +60 −0 ManagedFusion/Source/ManagedFusion/Types/ModuleInfo.cs
  208. +13 −0 ManagedFusion/Source/ManagedFusion/Types/PortalInitializationException.cs
  209. +130 −0 ManagedFusion/Source/ManagedFusion/Types/PortalType.cs
  210. +308 −0 ManagedFusion/Source/ManagedFusion/Types/PortletInfo.cs
  211. +57 −0 ManagedFusion/Source/ManagedFusion/Types/PortletModule.cs
  212. +68 −0 ManagedFusion/Source/ManagedFusion/Types/RootSection.cs
  213. +1,133 −0 ManagedFusion/Source/ManagedFusion/Types/SectionInfo.cs
  214. +134 −0 ManagedFusion/Source/ManagedFusion/Types/SectionModule.cs
  215. +456 −0 ManagedFusion/Source/ManagedFusion/Types/SiteInfo.cs
  216. +72 −0 ManagedFusion/Source/ManagedFusion/Types/StyleInfo.cs
  217. +282 −0 ManagedFusion/Source/ManagedFusion/Types/ThemeInfo.cs
  218. +64 −0 OmniPortal/Install.txt
  219. +179 −0 OmniPortal/OmniPortal.sln
  220. BIN  OmniPortal/OmniPortal.suo
  221. +29 −0 OmniPortal/Source/Modules/Admin/AdminModule.cs
  222. +48 −0 OmniPortal/Source/Modules/Admin/Module-Admin.csproj
  223. +38 −0 OmniPortal/Source/Modules/Admin/Module.config
  224. +35 −0 OmniPortal/Source/Modules/Admin/Properties/AssemblyInfo.cs
  225. +49 −0 OmniPortal/Source/Modules/Blog/Admin/AdminUserControl.cs
  226. +122 −0 OmniPortal/Source/Modules/Blog/BlogModule.cs
  227. +74 −0 OmniPortal/Source/Modules/Blog/Data/BlogDatabaseProvider.cs
  228. +116 −0 OmniPortal/Source/Modules/Blog/Data/BlogItem.cs
  229. +156 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/BlogSqlServerProvider.cs
  230. +446 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Blog_Categories.cs
  231. +664 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Blog_CategoryPostLink.cs
  232. +683 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Blog_Posts.cs
  233. +348 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/ConnectionProvider.cs
  234. +230 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/DBInteractionBase.cs
  235. +144 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Posts.cs
  236. +106 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Scripts/Blog-StoredProcedures-2.sql
  237. +597 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Scripts/Blog-StoredProcedures.sql
  238. +98 −0 OmniPortal/Source/Modules/Blog/Data/SqlServer2000/Scripts/Blog-Tables.sql
  239. +68 −0 OmniPortal/Source/Modules/Blog/Module-Blog.csproj
  240. +59 −0 OmniPortal/Source/Modules/Blog/Module.config
  241. +35 −0 OmniPortal/Source/Modules/Blog/Properties/AssemblyInfo.cs
  242. +55 −0 OmniPortal/Source/Modules/ExternalLink/Edit.cs
  243. +39 −0 OmniPortal/Source/Modules/ExternalLink/ExternalLinkModule.cs
  244. +51 −0 OmniPortal/Source/Modules/ExternalLink/Module-ExternalLink.csproj
  245. +5 −0 OmniPortal/Source/Modules/ExternalLink/Module.config
  246. +35 −0 OmniPortal/Source/Modules/ExternalLink/Properties/AssemblyInfo.cs
  247. +51 −0 OmniPortal/Source/Modules/SectionSummary/Module-SectionSummary.csproj
  248. +5 −0 OmniPortal/Source/Modules/SectionSummary/Module.config
  249. +35 −0 OmniPortal/Source/Modules/SectionSummary/Properties/AssemblyInfo.cs
  250. +36 −0 OmniPortal/Source/Modules/SectionSummary/SectionSummaryModule.cs
  251. +50 −0 OmniPortal/Source/Modules/SectionSummary/Summary.cs
  252. +83 −0 OmniPortal/Source/Modules/Static/Edit.cs
  253. +52 −0 OmniPortal/Source/Modules/Static/Module-Static.csproj
  254. +17 −0 OmniPortal/Source/Modules/Static/Module.config
  255. +35 −0 OmniPortal/Source/Modules/Static/Properties/AssemblyInfo.cs
  256. +72 −0 OmniPortal/Source/Modules/Static/StaticModule.cs
Sorry, we could not display the entire diff because too many files (370) changed.
50,617 Documentation/Installing OmniPortal.rtf
50,617 additions, 0 deletions not shown
208 ManagedFusion/License.html
@@ -0,0 +1,208 @@
+<html>
+ <head>
+ <title>Common Public License Version 1.0</title>
+ </head>
+ <body>
+ <H1>Common Public License Version 1.0</H1>
+ <P>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC
+ LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
+ CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+ </P>
+ <h2>1. DEFINITIONS
+ </h2>
+ <P>"Contribution" means:</P>
+ <BLOCKQUOTE>
+ <P>a) in the case of the initial Contributor, the initial code and documentation
+ distributed under this Agreement, and
+ </P>
+ <P>b) in the case of each subsequent Contributor:</P>
+ <P>i) changes to the Program, and</P>
+ <P>ii) additions to the Program;</P>
+ <P>where such changes and/or additions to the Program originate from and are
+ distributed by that particular Contributor. A Contribution 'originates' from a
+ Contributor if it was added to the Program by such Contributor itself or anyone
+ acting on such Contributor's behalf. Contributions do not include additions to
+ the Program which: (i) are separate modules of software distributed in
+ conjunction with the Program under their own license agreement, and (ii) are
+ not derivative works of the Program.</P>
+ </BLOCKQUOTE>
+ <P>"Contributor" means any person or entity that distributes the Program.
+ </P>
+ <P>"Licensed Patents " mean patent claims licensable by a Contributor which are
+ necessarily infringed by the use or sale of its Contribution alone or when
+ combined with the Program.</P>
+ <P>"Program" means the Contributions distributed in accordance with this Agreement.
+ </P>
+ <P>"Recipient" means anyone who receives the Program under this Agreement,
+ including all Contributors.
+ </P>
+ <h2>2. GRANT OF RIGHTS</h2>
+ <BLOCKQUOTE>
+ <P>a) Subject to the terms of this Agreement, each Contributor hereby grants
+ Recipient a non-exclusive, worldwide, royalty-free copyright license to
+ reproduce, prepare derivative works of, publicly display, publicly perform,
+ distribute and sublicense the Contribution of such Contributor, if any, and
+ such derivative works, in source code and object code form.</P>
+ <P>b) Subject to the terms of this Agreement, each Contributor hereby grants
+ Recipient a non-exclusive, worldwide, royalty-free patent license under
+ Licensed Patents to make, use, sell, offer to sell, import and otherwise
+ transfer the Contribution of such Contributor, if any, in source code and
+ object code form. This patent license shall apply to the combination of the
+ Contribution and the Program if, at the time the Contribution is added by the
+ Contributor, such addition of the Contribution causes such combination to be
+ covered by the Licensed Patents. The patent license shall not apply to any
+ other combinations which include the Contribution. No hardware per se is
+ licensed hereunder.</P>
+ <P>c) Recipient understands that although each Contributor grants the licenses to
+ its Contributions set forth herein, no assurances are provided by any
+ Contributor that the Program does not infringe the patent or other intellectual
+ property rights of any other entity. Each Contributor disclaims any liability
+ to Recipient for claims brought by any other entity based on infringement of
+ intellectual property rights or otherwise. As a condition to exercising the
+ rights and licenses granted hereunder, each Recipient hereby assumes sole
+ responsibility to secure any other intellectual property rights needed, if any.
+ For example, if a third party patent license is required to allow Recipient to
+ distribute the Program, it is Recipient's responsibility to acquire that
+ license before distributing the Program.</P>
+ <P>d) Each Contributor represents that to its knowledge it has sufficient copyright
+ rights in its Contribution, if any, to grant the copyright license set forth in
+ this Agreement.</P>
+ </BLOCKQUOTE>
+ <h2>3. REQUIREMENTS</h2>
+ <P>A Contributor may choose to distribute the Program in object code form under its
+ own license agreement, provided that:
+ </P>
+ <BLOCKQUOTE>
+ <P>a) it complies with the terms and conditions of this Agreement; and</P>
+ <P>b) its license agreement:</P>
+ <P>i) effectively disclaims on behalf of all Contributors all warranties and
+ conditions, express and implied, including warranties or conditions of title
+ and non-infringement, and implied warranties or conditions of merchantability
+ and fitness for a particular purpose;
+ </P>
+ <P>ii) effectively excludes on behalf of all Contributors all liability for
+ damages, including direct, indirect, special, incidental and consequential
+ damages, such as lost profits;
+ </P>
+ <P>iii) states that any provisions which differ from this Agreement are offered by
+ that Contributor alone and not by any other party; and
+ </P>
+ <P>iv) states that source code for the Program is available from such Contributor,
+ and informs licensees how to obtain it in a reasonable manner on or through a
+ medium customarily used for software exchange.
+ </P>
+ </BLOCKQUOTE>
+ <P>When the Program is made available in source code form:</P>
+ <BLOCKQUOTE>
+ <P>a) it must be made available under this Agreement; and</P>
+ <P>b) a copy of this Agreement must be included with each copy of the Program.
+ </P>
+ </BLOCKQUOTE>
+ <P>Contributors may not remove or alter any copyright notices contained within the
+ Program.</P>
+ <P>Each Contributor must identify itself as the originator of its Contribution, if
+ any, in a manner that reasonably allows subsequent Recipients to identify the
+ originator of the Contribution.
+ </P>
+ <h2>4. COMMERCIAL DISTRIBUTION</h2>
+ <P>Commercial distributors of software may accept certain responsibilities with
+ respect to end users, business partners and the like. While this license is
+ intended to facilitate the commercial use of the Program, the Contributor who
+ includes the Program in a commercial product offering should do so in a manner
+ which does not create potential liability for other Contributors. Therefore, if
+ a Contributor includes the Program in a commercial product offering, such
+ Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
+ every other Contributor ("Indemnified Contributor") against any losses, damages
+ and costs (collectively "Losses") arising from claims, lawsuits and other legal
+ actions brought by a third party against the Indemnified Contributor to the
+ extent caused by the acts or omissions of such Commercial Contributor in
+ connection with its distribution of the Program in a commercial product
+ offering. The obligations in this section do not apply to any claims or Losses
+ relating to any actual or alleged intellectual property infringement. In order
+ to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
+ Contributor in writing of such claim, and b) allow the Commercial Contributor
+ to control, and cooperate with the Commercial Contributor in, the defense and
+ any related settlement negotiations. The Indemnified Contributor may
+ participate in any such claim at its own expense.
+ </P>
+ <P>For example, a Contributor might include the Program in a commercial product
+ offering, Product X. That Contributor is then a Commercial Contributor. If that
+ Commercial Contributor then makes performance claims, or offers warranties
+ related to Product X, those performance claims and warranties are such
+ Commercial Contributor's responsibility alone. Under this section, the
+ Commercial Contributor would have to defend claims against the other
+ Contributors related to those performance claims and warranties, and if a court
+ requires any other Contributor to pay any damages as a result, the Commercial
+ Contributor must pay those damages.
+ </P>
+ <h2>5. NO WARRANTY</h2>
+ <P>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
+ IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
+ NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each
+ Recipient is solely responsible for determining the appropriateness of using
+ and distributing the Program and assumes all risks associated with its exercise
+ of rights under this Agreement, including but not limited to the risks and
+ costs of program errors, compliance with applicable laws, damage to or loss of
+ data, programs or equipment, and unavailability or interruption of operations.
+ </P>
+ <h2>6. DISCLAIMER OF LIABILITY</h2>
+ <P>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
+ CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
+ PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+ WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
+ GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ </P>
+ <h2>7. GENERAL</h2>
+ <P>If any provision of this Agreement is invalid or unenforceable under applicable
+ law, it shall not affect the validity or enforceability of the remainder of the
+ terms of this Agreement, and without further action by the parties hereto, such
+ provision shall be reformed to the minimum extent necessary to make such
+ provision valid and enforceable.
+ </P>
+ <P>If Recipient institutes patent litigation against a Contributor with respect to
+ a patent applicable to software (including a cross-claim or counterclaim in a
+ lawsuit), then any patent licenses granted by that Contributor to such
+ Recipient under this Agreement shall terminate as of the date such litigation
+ is filed. In addition, if Recipient institutes patent litigation against any
+ entity (including a cross-claim or counterclaim in a lawsuit) alleging that the
+ Program itself (excluding combinations of the Program with other software or
+ hardware) infringes such Recipient's patent(s), then such Recipient's rights
+ granted under Section 2(b) shall terminate as of the date such litigation is
+ filed.</P>
+ <P>All Recipient's rights under this Agreement shall terminate if it fails to
+ comply with any of the material terms or conditions of this Agreement and does
+ not cure such failure in a reasonable period of time after becoming aware of
+ such noncompliance. If all Recipient's rights under this Agreement terminate,
+ Recipient agrees to cease use and distribution of the Program as soon as
+ reasonably practicable. However, Recipient's obligations under this Agreement
+ and any licenses granted by Recipient relating to the Program shall continue
+ and survive.
+ </P>
+ <P>Everyone is permitted to copy and distribute copies of this Agreement, but in
+ order to avoid inconsistency the Agreement is copyrighted and may only be
+ modified in the following manner. The Agreement Steward reserves the right to
+ publish new versions (including revisions) of this Agreement from time to time.
+ No one other than the Agreement Steward has the right to modify this Agreement.
+ IBM is the initial Agreement Steward. IBM may assign the responsibility to
+ serve as the Agreement Steward to a suitable separate entity. Each new version
+ of the Agreement will be given a distinguishing version number. The Program
+ (including Contributions) may always be distributed subject to the version of
+ the Agreement under which it was received. In addition, after a new version of
+ the Agreement is published, Contributor may elect to distribute the Program
+ (including its Contributions) under the new version. Except as expressly stated
+ in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
+ the intellectual property of any Contributor under this Agreement, whether
+ expressly, by implication, estoppel or otherwise. All rights in the Program not
+ expressly granted under this Agreement are reserved.
+ </P>
+ <P>
+ This Agreement is governed by the laws of the State of New York and the
+ intellectual property laws of the United States of America. No party to this
+ Agreement will bring a legal action under this Agreement more than one year
+ after the cause of action arose. Each party waives its rights to a jury trial
+ in any resulting litigation.</P>
+ </body>
+</html>
53 ManagedFusion/ManagedFusion.sln
@@ -0,0 +1,53 @@
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Databases", "Databases", "{F26CAAD3-902F-4D9D-A222-A7CC86C9B9EE}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SqlServer2000", "SqlServer2000", "{F092C703-35C8-4F55-B548-E0298C3B3F70}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedFusion-SqlServer2000", "Source\Databases\SqlServer2000\Provider\ManagedFusion-SqlServer2000.csproj", "{8EBE53E5-A163-43B9-8DE8-E5E88BDEB071}"
+EndProject
+Project("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "ManagedFusion-SqlServer2000-Scripts", "Source\Databases\SqlServer2000\Scripts\ManagedFusion-SqlServer2000-Scripts.dbp", "{EB448099-1C41-4301-B0D7-560975E1A5C3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedFusion", "Source\ManagedFusion\ManagedFusion.csproj", "{F26CF465-ECA9-43CB-AB25-7EC557CFA0CE}"
+EndProject
+Global
+ GlobalSection(TeamFoundationVersionControl) = preSolution
+ SccNumberOfProjects = 4
+ SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
+ SccTeamFoundationServer = http://team.managedfusion.com:8080/
+ SccLocalPath0 = .
+ SccProjectUniqueName1 = Source\\Databases\\SqlServer2000\\Provider\\ManagedFusion-SqlServer2000.csproj
+ SccProjectTopLevelParentUniqueName1 = ManagedFusion.sln
+ SccProjectName1 = Source/Databases/SqlServer2000/Provider
+ SccLocalPath1 = Source\\Databases\\SqlServer2000\\Provider
+ SccProjectUniqueName2 = Source\\Databases\\SqlServer2000\\Scripts\\ManagedFusion-SqlServer2000-Scripts.dbp
+ SccProjectTopLevelParentUniqueName2 = ManagedFusion.sln
+ SccProjectName2 = Source/Databases/SqlServer2000/Scripts
+ SccLocalPath2 = Source\\Databases\\SqlServer2000\\Scripts
+ SccProjectUniqueName3 = Source\\ManagedFusion\\ManagedFusion.csproj
+ SccProjectName3 = Source/ManagedFusion
+ SccLocalPath3 = Source\\ManagedFusion
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {8EBE53E5-A163-43B9-8DE8-E5E88BDEB071}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8EBE53E5-A163-43B9-8DE8-E5E88BDEB071}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8EBE53E5-A163-43B9-8DE8-E5E88BDEB071}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8EBE53E5-A163-43B9-8DE8-E5E88BDEB071}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F26CF465-ECA9-43CB-AB25-7EC557CFA0CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F26CF465-ECA9-43CB-AB25-7EC557CFA0CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F26CF465-ECA9-43CB-AB25-7EC557CFA0CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F26CF465-ECA9-43CB-AB25-7EC557CFA0CE}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {F092C703-35C8-4F55-B548-E0298C3B3F70} = {F26CAAD3-902F-4D9D-A222-A7CC86C9B9EE}
+ {8EBE53E5-A163-43B9-8DE8-E5E88BDEB071} = {F092C703-35C8-4F55-B548-E0298C3B3F70}
+ {EB448099-1C41-4301-B0D7-560975E1A5C3} = {F092C703-35C8-4F55-B548-E0298C3B3F70}
+ EndGlobalSection
+EndGlobal
BIN  ManagedFusion/ManagedFusion.suo
Binary file not shown
10 ManagedFusion/ManagedFusion.vssscc
@@ -0,0 +1,10 @@
+""
+{
+"FILE_VERSION" = "9237"
+"ENLISTMENT_CHOICE" = "NEVER"
+"PROJECT_FILE_RELATIVE_PATH" = ""
+"NUMBER_OF_EXCLUDED_FILES" = "0"
+"ORIGINAL_PROJECT_FILE_PATH" = ""
+"NUMBER_OF_NESTED_PROJECTS" = "0"
+"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
+}
72 ManagedFusion/Source/Databases/ManagedFusion.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<codeSmith>
+ <propertySet>
+ <property name="GenerateStoredProcedures">True</property>
+ <property name="GenerateTables">True</property>
+ <property name="GenerateViews">False</property>
+ <property name="TablesFolderName">Tables</property>
+ <property name="ConnectionStringName">ManagedFusion</property>
+ <property name="Namespace">ManagedFusion.Data.SqlServer2000</property>
+ <property name="CompanyName">ManagedFusion</property>
+ <property name="CompanyUrl">http://www.managedfusion.com</property>
+ <property name="InsertUpdateSuffix" />
+ <property name="DeleteSuffix">_Delete</property>
+ <property name="ProcedurePrefix">ManagedFusion_</property>
+ <property name="OutputDirectory">M:\Users\Nick\Projects\ManagedFusion\Source\Databases\SqlServer2000\Provider</property>
+ <property name="SqlOutputDirectory">M:\Users\Nick\Projects\ManagedFusion\Source\Databases\SqlServer2000\Scripts\Create Scripts\Stored Procedures</property>
+ <property name="SourceTables">
+ <connectionString>Data Source=(local);Initial Catalog=ManagedFusion;Integrated Security=true;Connection Timeout=1;</connectionString>
+ <providerType>SchemaExplorer.SqlSchemaProvider,SchemaExplorer.SqlSchemaProvider</providerType>
+ <tableList>
+ <table>
+ <owner>dbo</owner>
+ <name>Community</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>CommunityProperty</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>Container</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>ContainerPortletLink</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>Portlet</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>PortletProperty</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>PortletRole</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>Section</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>SectionContainerLink</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>SectionProperty</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>SectionRole</name>
+ </table>
+ <table>
+ <owner>dbo</owner>
+ <name>Site</name>
+ </table>
+ </tableList>
+ </property>
+ </propertySet>
+</codeSmith>
30 ManagedFusion/Source/Databases/SqlServer2000/Provider/Community.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class Community
+ {
+ public static implicit operator CommunityInfo(Community c)
+ {
+ return new CommunityInfo(
+ c._communityID,
+ c._universalID,
+ c._name,
+ c._touched
+ );
+ }
+
+ public static explicit operator Community(CommunityInfo c)
+ {
+ Community community = new Community();
+ community._communityID = c.Identity;
+ community._universalID = c.UniversalID;
+ community._name = c.Title;
+ community._description = c.Title;
+ community.Touched = c.Touched;
+ return community;
+ }
+ }
+}
28 ManagedFusion/Source/Databases/SqlServer2000/Provider/Container.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class Container
+ {
+ public static implicit operator ContainerInfo(Container c)
+ {
+ return new ContainerInfo(
+ c._containerID,
+ c._description,
+ c._touched
+ );
+ }
+
+ public static explicit operator Container(ContainerInfo c)
+ {
+ Container container = new Container();
+ container._containerID = c.Identity;
+ container._name = c.Title;
+ container._description = c.Title;
+ container._touched = c.Touched;
+ return container;
+ }
+ }
+}
14 ManagedFusion/Source/Databases/SqlServer2000/Provider/ContainerPortletLink.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class ContainerPortletLink
+ {
+ public static List<ContainerPortletLink> GetByContainerID(int containerID)
+ {
+ return GetList("ContainerID = " + containerID);
+ }
+ }
+}
18 ManagedFusion/Source/Databases/SqlServer2000/Provider/ITable.cs
@@ -0,0 +1,18 @@
+/*
+ * Template: This code was generated by the ManagedFusion [http://www.managedfusion.com] Data Layer Template.
+ * Created On : 11/22/2006
+ * Remarks: Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public interface ITable<T>
+ {
+ T PrimaryKey { get; }
+ void CommitChanges();
+ }
+}
100 ManagedFusion/Source/Databases/SqlServer2000/Provider/ManagedFusion-SqlServer2000.csproj
@@ -0,0 +1,100 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{8EBE53E5-A163-43B9-8DE8-E5E88BDEB071}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ManagedFusion.Data.SqlServer2000</RootNamespace>
+ <AssemblyName>ManagedFusion.Data.SqlServer2000</AssemblyName>
+ <IsWebBootstrapper>true</IsWebBootstrapper>
+ <PublishUrl>http://localhost/Provider/</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Web</InstallFrom>
+ <UpdateEnabled>true</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationVersion>1.0.0.*</ApplicationVersion>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ <SccProjectName>SAK</SccProjectName>
+ <SccLocalPath>SAK</SccLocalPath>
+ <SccAuxPath>SAK</SccAuxPath>
+ <SccProvider>SAK</SccProvider>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.configuration" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Community.cs" />
+ <Compile Include="Container.cs" />
+ <Compile Include="ContainerPortletLink.cs" />
+ <Compile Include="ITable.cs" />
+ <Compile Include="Portlet.cs" />
+ <Compile Include="PortletRole.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Section.cs" />
+ <Compile Include="SectionRole.cs" />
+ <Compile Include="Site.cs" />
+ <Compile Include="SqlServerProvider.cs" />
+ <Compile Include="TableCollection.cs" />
+ <Compile Include="Tables\Community.cs" />
+ <Compile Include="Tables\CommunityProperty.cs" />
+ <Compile Include="Tables\Container.cs" />
+ <Compile Include="Tables\ContainerPortletLink.cs" />
+ <Compile Include="Tables\Portlet.cs" />
+ <Compile Include="Tables\PortletProperty.cs" />
+ <Compile Include="Tables\PortletRole.cs" />
+ <Compile Include="Tables\Section.cs" />
+ <Compile Include="Tables\SectionContainerLink.cs" />
+ <Compile Include="Tables\SectionProperty.cs" />
+ <Compile Include="Tables\SectionRole.cs" />
+ <Compile Include="Tables\Site.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
+ <InProject>False</InProject>
+ <ProductName>.NET Framework 2.0 Beta</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Sql.Server.Express.1.0">
+ <InProject>False</InProject>
+ <ProductName>SQL Server 2005 Express Edition Beta</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\ManagedFusion\ManagedFusion.csproj">
+ <Project>{F26CF465-ECA9-43CB-AB25-7EC557CFA0CE}</Project>
+ <Name>ManagedFusion</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project>
13 ManagedFusion/Source/Databases/SqlServer2000/Provider/ManagedFusion-SqlServer2000.csproj.user
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <PublishUrlHistory />
+ <InstallUrlHistory />
+ <SupportUrlHistory />
+ <UpdateUrlHistory />
+ <BootstrapperUrlHistory />
+ <ErrorReportUrlHistory />
+ <FallbackCulture>en-US</FallbackCulture>
+ <VerifyUploadedFiles>false</VerifyUploadedFiles>
+ </PropertyGroup>
+</Project>
10 ManagedFusion/Source/Databases/SqlServer2000/Provider/ManagedFusion-SqlServer2000.csproj.vspscc
@@ -0,0 +1,10 @@
+""
+{
+"FILE_VERSION" = "9237"
+"ENLISTMENT_CHOICE" = "NEVER"
+"PROJECT_FILE_RELATIVE_PATH" = ""
+"NUMBER_OF_EXCLUDED_FILES" = "0"
+"ORIGINAL_PROJECT_FILE_PATH" = ""
+"NUMBER_OF_NESTED_PROJECTS" = "0"
+"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
+}
30 ManagedFusion/Source/Databases/SqlServer2000/Provider/Portlet.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class Portlet
+ {
+ public static implicit operator PortletInfo(Portlet p)
+ {
+ return new PortletInfo(
+ p._portletID,
+ p._description,
+ p._moduleID,
+ p._touched
+ );
+ }
+
+ public static explicit operator Portlet(PortletInfo p)
+ {
+ Portlet portlet = new Portlet();
+ portlet._portletID = p.Identity;
+ portlet._name = p.Title;
+ portlet._description = p.Title;
+ portlet._touched = p.Touched;
+ portlet._moduleID = p.Module.Identity;
+ return portlet;
+ }
+ }
+}
14 ManagedFusion/Source/Databases/SqlServer2000/Provider/PortletRole.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class PortletRole
+ {
+ public static List<PortletRole> GetByPortletID(int portletID)
+ {
+ return GetList("PortletID = " + portletID);
+ }
+ }
+}
35 ManagedFusion/Source/Databases/SqlServer2000/Provider/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Provider")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Home User")]
+[assembly: AssemblyProduct("Provider")]
+[assembly: AssemblyCopyright("Copyright © Home User 2005")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM componenets. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the Identity of the typelib if this project is exposed to COM
+[assembly: Guid("d45213c2-32ab-40d1-9fd8-624c9a9acb05")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
49 ManagedFusion/Source/Databases/SqlServer2000/Provider/Section.cs
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class Section
+ {
+ public static implicit operator SectionInfo(Section s)
+ {
+ return new SectionInfo(
+ s._sectionID,
+ s._name,
+ s._description,
+ s._parentSectionID,
+ s._sortOrder,
+ s._isVisible,
+ s._syndicateFeed,
+ s._theme,
+ s._style,
+ s._moduleID,
+ s._owner,
+ s._touched,
+ s._communityID
+ );
+ }
+
+ public static explicit operator Section(SectionInfo s)
+ {
+ Section section = new Section();
+ section._sectionID = s.Identity;
+ section._parentSectionID = (s.Parent != null) ? s.Parent.Identity : RootSection.Identity;
+ section._communityID = s.ConnectedCommunity.Identity;
+ section._name = s.Name;
+ section._description = s.OriginalTitle;
+ section._touched = s.Touched;
+ section._sortOrder = s.Order;
+ section._isEnabled = s.Enabled;
+ section._isVisible = s.Visible;
+ section._syndicateFeed = s.Syndicated;
+ section._syndicateSitemap = s.Syndicated;
+ section._owner = s.OriginalOwner;
+ section._moduleID = s.Module.Identity;
+ section._theme = s.OriginalTheme;
+ section._style = s.OriginalStyle;
+ return section;
+ }
+ }
+}
14 ManagedFusion/Source/Databases/SqlServer2000/Provider/SectionRole.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class SectionRole
+ {
+ public static List<SectionRole> GetBySectionID(int sectionID)
+ {
+ return GetList("SectionID = " + sectionID);
+ }
+ }
+}
37 ManagedFusion/Source/Databases/SqlServer2000/Provider/Site.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public partial class Site
+ {
+ public static implicit operator SiteInfo(Site s)
+ {
+ return new SiteInfo(
+ s._siteID,
+ s._domain,
+ s._subDomain,
+ s._touched,
+ s._sectionID ?? SectionInfo.NullIdentity,
+ s._theme,
+ s._style
+ );
+ }
+
+ public static explicit operator Site(SiteInfo s)
+ {
+ Site site = new Site();
+ site._siteID = s.Identity;
+ site._sectionID = (s.ConnectedSection != null) ? s.ConnectedSection.Identity : (int?)null;
+ site._name = s.FullDomain;
+ site._description = s.FullDomain;
+ site._touched = s.Touched;
+ site._subDomain = s.SubDomain;
+ site._domain = s.Domain;
+ site._theme = s.OriginalTheme;
+ site._style = s.OriginalStyle;
+ return site;
+ }
+ }
+}
1,221 ManagedFusion/Source/Databases/SqlServer2000/Provider/SqlServerProvider.cs
@@ -0,0 +1,1221 @@
+#region Copyright © 2004, Nicholas Berardi
+/*
+ * ManagedFusion (www.ManagedFusion.net) Copyright © 2004, Nicholas Berardi
+ * All rights reserved.
+ *
+ * This code is protected under the Common Public License Version 1.0
+ * The license in its entirety at <http://opensource.org/licenses/cpl.php>
+ *
+ * ManagedFusion is freely available from <http://www.ManagedFusion.net/>
+ */
+#endregion
+
+using System;
+using System.Data;
+using System.Data.SqlClient;
+using System.Data.SqlTypes;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Security.Principal;
+using System.Web;
+
+// ManagedFusion Classes
+using ManagedFusion;
+using ManagedFusion.Data;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public class SqlServerProvider : PortalDatabaseProvider
+ {
+ #region Portlets
+
+ private ManagedFusion.PortletCollection _Portlets;
+ public override ManagedFusion.PortletCollection Portlets
+ {
+ #region get
+ get
+ {
+ if (this._Portlets != null) return this._Portlets;
+
+ // get all portlets
+ List<Portlet> database = Portlet.GetList();
+
+ // create protlet array
+ PortletInfo[] portlets = new PortletInfo[database.Count];
+
+ // create protlet for each row
+ for (int i = 0; i < database.Count; i++)
+ portlets[i] = database[i];
+
+ this._Portlets = new ManagedFusion.PortletCollection(portlets);
+ return this._Portlets;
+ }
+ #endregion
+ #region set
+ set
+ {
+ bool changed = false;
+
+ IEnumerator<PortletInfo> enumerator = value.ChangedItems;
+
+ while (enumerator.MoveNext()) {
+ PortletInfo portlet = enumerator.Current;
+ changed = true;
+
+ this.CommitPortletChanges(portlet);
+ }
+
+ // update collection if changed
+ if (changed)
+ {
+ this.ResetPortletCollection();
+ }
+ }
+ #endregion
+ }
+
+ public override void CommitPortletChanges(PortletInfo portlet)
+ {
+ switch (portlet.State)
+ {
+ case State.Added : // insert
+ Portlet.Insert((Portlet)portlet);
+ break;
+ case State.Changed : // commit changes
+ Portlet.Update((Portlet)portlet);
+ break;
+ case State.Deleted : // remove
+ Portlet.Delete((Portlet)portlet);
+ break;
+ }
+ }
+
+ protected override void ResetPortletCollection()
+ {
+ this._Portlets = null;
+ this._Portlets = this.Portlets;
+
+ // notify subscribers of change
+ this.OnPortletsChanged();
+ }
+
+ #endregion
+
+ #region Containers
+
+ private ManagedFusion.ContainerCollection _Containers;
+ public override ManagedFusion.ContainerCollection Containers
+ {
+ #region get
+ get
+ {
+ if (this._Containers != null) return this._Containers;
+
+ // get all containers
+ List<Container> database = Container.GetList();
+
+ // create container array
+ ContainerInfo[] containers = new ContainerInfo[database.Count];
+
+ // create container for each row
+ for (int i = 0; i < database.Count; i++)
+ containers[i] = database[i];
+
+ this._Containers = new ManagedFusion.ContainerCollection(containers);
+ return this._Containers;
+ }
+ #endregion
+ #region set
+ set
+ {
+ bool changed = false;
+
+ IEnumerator<ContainerInfo> enumerator = value.ChangedItems;
+
+ while (enumerator.MoveNext()) {
+ ContainerInfo container = enumerator.Current;
+ changed = true;
+
+ this.CommitContainerChanges(container);
+ }
+
+ // update collection if changed
+ if (changed)
+ {
+ this.ResetContainerCollection();
+ }
+ }
+ #endregion
+ }
+
+ public override void CommitContainerChanges(ContainerInfo container)
+ {
+ switch (container.State)
+ {
+ case State.Added : // insert
+ Container.Insert((Container)container);
+ break;
+ case State.Changed : // commit changes
+ Container.Update((Container)container);
+ break;
+ case State.Deleted : // remove
+ Container.Delete((Container)container);
+ break;
+ }
+ }
+
+ protected override void ResetContainerCollection()
+ {
+ this._Containers = null;
+ this._Containers = this.Containers;
+
+ // notify subscribers of change
+ this.OnContainersChanged();
+ }
+
+ #endregion
+
+ #region Sections
+
+ private ManagedFusion.SectionCollection _Sections;
+ public override ManagedFusion.SectionCollection Sections
+ {
+ #region get
+ get
+ {
+ if (this._Sections != null) return this._Sections;
+
+ // get all sections
+ List<Section> database = Section.GetList();
+
+ // create section array
+ SectionInfo[] sections = new SectionInfo[database.Count];
+
+ // create section for each row
+ for(int i = 0; i < database.Count; i++)
+ sections[i] = database[i];
+
+ this._Sections = new ManagedFusion.SectionCollection(sections);
+ return this._Sections;
+ }
+ #endregion
+ #region set
+ set
+ {
+ bool changed = false;
+
+ IEnumerator<SectionInfo> enumerator = value.ChangedItems;
+
+ while (enumerator.MoveNext()) {
+ SectionInfo section = enumerator.Current;
+ changed = true;
+
+ this.CommitSectionChanges(section);
+ }
+
+ // update collection if changed
+ if (changed)
+ {
+ this.ResetSectionCollection();
+ }
+ }
+ #endregion
+ }
+
+ public override void CommitSectionChanges(SectionInfo section)
+ {
+ switch (section.State)
+ {
+ case State.Added : // insert
+ Section.Insert((Section)section);
+ break;
+ case State.Changed : // commit changes
+ Section.Update((Section)section);
+ break;
+ case State.Deleted : // remove
+ Section.Delete((Section)section);
+ break;
+ }
+ }
+
+ protected override void ResetSectionCollection()
+ {
+ this._Sections = null;
+ this._Sections = this.Sections;
+
+ // notify subscribers of change
+ this.OnSectionsChanged();
+ }
+
+ #endregion
+
+ #region Communities
+
+ private ManagedFusion.CommunityCollection _Communities;
+ public override ManagedFusion.CommunityCollection Communities
+ {
+ #region get
+ get
+ {
+ if (_Communities != null) return _Communities;
+
+ // get all Communities
+ List<Community> database = Community.GetList();
+
+ // create community array
+ CommunityInfo[] communities = new CommunityInfo[database.Count];
+
+ // create community for each row
+ for (int i = 0; i < database.Count; i++)
+ communities[i] = database[i];
+
+ this._Communities = new ManagedFusion.CommunityCollection(communities);
+ return this._Communities;
+ }
+ #endregion
+ #region set
+ set
+ {
+ bool changed = false;
+
+ IEnumerator<CommunityInfo> enumerator = value.ChangedItems;
+
+ while(enumerator.MoveNext()) {
+ CommunityInfo community = enumerator.Current;
+ changed = true;
+
+ this.CommitPortalChanges(community);
+ }
+
+ // update collection if changed
+ if (changed)
+ {
+ this.ResetCommunityCollection();
+ }
+ }
+ #endregion
+ }
+
+ public override void CommitPortalChanges(CommunityInfo community)
+ {
+ switch (community.State)
+ {
+ case State.Added : // insert
+ Community.Insert((Community)community);
+ break;
+ case State.Changed : // commit changes
+ Community.Update((Community)community);
+ break;
+ case State.Deleted : // remove
+ Community.Delete((Community)community);
+ break;
+ }
+ }
+
+ protected override void ResetCommunityCollection()
+ {
+ this._Communities = null;
+ this._Communities = this.Communities;
+
+ // notify subscribers of change
+ this.OnCommunitiesChanged();
+ }
+
+ #endregion
+
+ #region Sites
+
+ private ManagedFusion.SiteCollection _Sites;
+ public override ManagedFusion.SiteCollection Sites
+ {
+ #region get
+ get
+ {
+ if (_Sites != null) return _Sites;
+
+ // get all sites
+ List<Site> database = Site.GetList();
+
+ // create site array
+ SiteInfo[] sites = new SiteInfo[database.Count];
+
+ // create site for each row
+ for (int i = 0; i < database.Count; i++)
+ sites[i] = database[i];
+
+ this._Sites = new ManagedFusion.SiteCollection(sites);
+ return this._Sites;
+ }
+ #endregion
+ #region set
+ set
+ {
+ bool changed = false;
+
+ IEnumerator<SiteInfo> enumerator = value.ChangedItems;
+
+ while(enumerator.MoveNext()) {
+ SiteInfo site = enumerator.Current;
+ changed = true;
+
+ this.CommitSiteChanges(site);
+ }
+
+ // update collection if changed
+ if (changed)
+ {
+ this.ResetSiteCollection();
+ }
+ }
+ #endregion
+ }
+
+ public override void CommitSiteChanges(SiteInfo site)
+ {
+ switch (site.State)
+ {
+ case State.Added : // insert
+ Site.Insert((Site)site);
+ break;
+ case State.Changed : // commit changes
+ Site.Update((Site)site);
+ break;
+ case State.Deleted : // remove
+ Site.Delete((Site)site);
+ break;
+ }
+ }
+
+ protected override void ResetSiteCollection()
+ {
+ this._Sites = null;
+ this._Sites = this.Sites;
+
+ // notify subscribers of change
+ this.OnSitesChanged();
+ }
+
+ #endregion
+
+ #region Properties
+
+ #region SectionModuleData
+
+ public override SectionModuleDataCollection GetModuleDataForSection (SectionInfo section)
+ {
+ List<SectionProperty> properties = SectionProperty.GetList("SectionID = " + section.Identity + " and PropertyGroup = '" + SectionModuleDataGroup + "'");
+
+ // get all properties for section
+ NameValueCollection collection = new NameValueCollection(properties.Count);
+
+ // add all rows to NameValueCollection
+ foreach (SectionProperty property in properties)
+ collection.Add(
+ property.Name,
+ property.Value
+ );
+
+ // returns a property collection
+ return new SectionModuleDataCollection(section, collection);
+ }
+
+ public override void AddModuleDataForSection (string name, string value, SectionInfo section)
+ {
+ SectionProperty property = new SectionProperty(
+ section.Identity,
+ SectionModuleDataGroup,
+ name,
+ value
+ );
+
+ try
+ {
+ // insert new property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateModuleDataForSection (string name, string value, SectionInfo section)
+ {
+ SectionProperty property = SectionProperty.GetBySectionIDAndPropertyGroupAndName(
+ section.Identity,
+ SectionModuleDataGroup,
+ name
+ );
+ property.Value = value;
+
+ try
+ {
+ // update property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveModuleDataForSection (string name, SectionInfo section)
+ {
+ SectionProperty property = SectionProperty.GetBySectionIDAndPropertyGroupAndName(
+ section.Identity,
+ SectionModuleDataGroup,
+ name
+ );
+ try
+ {
+ // delete property
+ property.Delete();
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region PortletModuleData
+
+ public override PortletModuleDataCollection GetModuleDataForPortlet (PortletInfo portlet)
+ {
+ List<PortletProperty> properties = PortletProperty.GetList("PortletID = " + portlet.Identity + " and PropertyGroup = '" + PortletModuleDataGroup + "'");
+ NameValueCollection collection = new NameValueCollection(properties.Count);
+
+ // add all rows to NameValueCollection
+ foreach (PortletProperty property in properties)
+ collection.Add(
+ property.Name,
+ property.Value
+ );
+
+ // returns a property collection
+ return new ManagedFusion.PortletModuleDataCollection(portlet, collection);
+ }
+
+ public override void AddModuleDataForPortlet (string name, string value, PortletInfo portlet)
+ {
+ PortletProperty property = new PortletProperty(
+ portlet.Identity,
+ PortletModuleDataGroup,
+ name,
+ value
+ );
+
+ try
+ {
+ // insert new property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateModuleDataForPortlet (string name, string value, PortletInfo portlet)
+ {
+ PortletProperty property = PortletProperty.GetByPortletIDAndPropertyGroupAndName(
+ portlet.Identity,
+ PortletModuleDataGroup,
+ name
+ );
+ property.Value = value;
+
+ try
+ {
+ // update property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveModuleDataForPortlet (string name, PortletInfo portlet)
+ {
+ PortletProperty property = PortletProperty.GetByPortletIDAndPropertyGroupAndName(
+ portlet.Identity,
+ PortletModuleDataGroup,
+ name
+ );
+
+ try
+ {
+ // delete property
+ property.Delete();
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region SectionMetaProperties
+
+ public override SectionMetaPropertyCollection GetMetaPropertiesForSection (SectionInfo section)
+ {
+ List<SectionProperty> properties = SectionProperty.GetList("SectionID = " + section.Identity + " and PropertyGroup = '" + SectionMetaPropertiesGroup + "'");
+ NameValueCollection collection = new NameValueCollection(properties.Count);
+
+ // add all rows to NameValueCollection
+ foreach (SectionProperty property in properties)
+ collection.Add(
+ property.Name,
+ property.Value
+ );
+
+ // returns a property collection
+ return new ManagedFusion.SectionMetaPropertyCollection(section, collection);
+ }
+
+ public override void AddMetaPropertyForSection (string name, string value, SectionInfo section)
+ {
+ SectionProperty property = new SectionProperty(
+ section.Identity,
+ SectionMetaPropertiesGroup,
+ name,
+ value
+ );
+
+ try
+ {
+ // insert new property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateMetaPropertyForSection (string name, string value, SectionInfo section)
+ {
+ SectionProperty property = SectionProperty.GetBySectionIDAndPropertyGroupAndName(
+ section.Identity,
+ SectionMetaPropertiesGroup,
+ name
+ );
+ property.Value = value;
+
+ try
+ {
+ // update property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveMetaPropertyForSection (string name, SectionInfo section)
+ {
+ SectionProperty property = SectionProperty.GetBySectionIDAndPropertyGroupAndName(
+ section.Identity,
+ SectionMetaPropertiesGroup,
+ name
+ );
+
+ try
+ {
+ // delete property
+ property.Delete();
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region CommunityGeneralProperties
+
+ public override ManagedFusion.CommunityPropertyCollection GetGeneralPropertiesForCommunity(CommunityInfo community)
+ {
+ List<CommunityProperty> properties = CommunityProperty.GetList("CommunityID = " + community.Identity + " and PropertyGroup = '" + CommunityGeneralPropertiesGroup + "'");
+ NameValueCollection collection = new NameValueCollection(properties.Count);
+
+ // add all rows to NameValueCollection
+ foreach (CommunityProperty property in properties)
+ collection.Add(
+ property.Name,
+ property.Value
+ );
+
+ // returns a property collection
+ return new ManagedFusion.CommunityPropertyCollection(community, collection);
+ }
+
+ public override void AddGeneralPropertyForCommunity (string name, string value, CommunityInfo community)
+ {
+ CommunityProperty property = new CommunityProperty(
+ community.Identity,
+ CommunityGeneralPropertiesGroup,
+ name,
+ value
+ );
+
+ try
+ {
+ // insert new property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateGeneralPropertyForCommunity (string name, string value, CommunityInfo community)
+ {
+ CommunityProperty property = CommunityProperty.GetByCommunityIDAndPropertyGroupAndName(
+ community.Identity,
+ CommunityGeneralPropertiesGroup,
+ name
+ );
+ property.Value = value;
+
+ try
+ {
+ // update property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveGeneralPropertyForCommunity (string name, CommunityInfo community)
+ {
+ CommunityProperty property = CommunityProperty.GetByCommunityIDAndPropertyGroupAndName(
+ community.Identity,
+ CommunityGeneralPropertiesGroup,
+ name
+ );
+
+ try
+ {
+ // delete property
+ property.Delete();
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region SectionGeneralProperties
+
+ public override ManagedFusion.SectionPropertyCollection GetGeneralPropertiesForSection(SectionInfo section)
+ {
+ List<SectionProperty> properties = SectionProperty.GetList("SectionID = " + section.Identity + " and PropertyGroup = '" + SectionGeneralPropertiesGroup + "'");
+
+ // get all properties for section
+ NameValueCollection collection = new NameValueCollection(properties.Count);
+
+ // add all rows to NameValueCollection
+ foreach (SectionProperty property in properties)
+ collection.Add(
+ property.Name,
+ property.Value
+ );
+
+ // returns a property collection
+ return new ManagedFusion.SectionPropertyCollection(section, collection);
+ }
+
+ public override void AddGeneralPropertyForSection (string name, string value, SectionInfo section)
+ {
+ SectionProperty property = new SectionProperty(
+ section.Identity,
+ SectionModuleDataGroup,
+ name,
+ value
+ );
+
+ try
+ {
+ // insert new property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateGeneralPropertyForSection (string name, string value, SectionInfo section)
+ {
+ SectionProperty property = SectionProperty.GetBySectionIDAndPropertyGroupAndName(
+ section.Identity,
+ SectionModuleDataGroup,
+ name
+ );
+ property.Value = value;
+
+ try
+ {
+ // update property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveGeneralPropertyForSection (string name, SectionInfo section)
+ {
+ SectionProperty property = SectionProperty.GetBySectionIDAndPropertyGroupAndName(
+ section.Identity,
+ SectionModuleDataGroup,
+ name
+ );
+
+ try
+ {
+ // delete property
+ property.Delete();
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region PortletGeneralProperties
+
+ public override ManagedFusion.PortletPropertyCollection GetGeneralPropertiesForPortlet(PortletInfo portlet)
+ {
+ List<PortletProperty> properties = PortletProperty.GetList("PortletID = " + portlet.Identity + " and PropertyGroup = '" + PortletGeneralPropertiesGroup + "'");
+ NameValueCollection collection = new NameValueCollection(properties.Count);
+
+ // add all rows to NameValueCollection
+ foreach (PortletProperty property in properties)
+ collection.Add(
+ property.Name,
+ property.Value
+ );
+
+ // returns a property collection
+ return new ManagedFusion.PortletPropertyCollection(portlet, collection);
+ }
+
+ public override void AddGeneralPropertyForPortlet (string name, string value, PortletInfo portlet)
+ {
+ PortletProperty property = new PortletProperty(
+ portlet.Identity,
+ PortletGeneralPropertiesGroup,
+ name,
+ value
+ );
+
+ try
+ {
+ // insert new property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateGeneralPropertyForPortlet (string name, string value, PortletInfo portlet)
+ {
+ PortletProperty property = PortletProperty.GetByPortletIDAndPropertyGroupAndName(
+ portlet.Identity,
+ PortletGeneralPropertiesGroup,
+ name
+ );
+ property.Value = value;
+
+ try
+ {
+ // update property
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveGeneralPropertyForPortlet (string name, PortletInfo portlet)
+ {
+ PortletProperty property = PortletProperty.GetByPortletIDAndPropertyGroupAndName(
+ portlet.Identity,
+ PortletGeneralPropertiesGroup,
+ name
+ );
+
+ try
+ {
+ // delete property
+ property.Delete();
+ property.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #endregion
+
+ #region Roles
+
+ #region SectionRoles
+
+ public override RolesTasksDictionary GetRolesForSection(SectionInfo section)
+ {
+ List<SectionRole> dbroles = SectionRole.GetBySectionID(section.Identity);
+
+ // return list of roles
+ RolesTasksDictionary roles = new RolesTasksDictionary();
+
+ foreach (SectionRole role in dbroles)
+ roles.Add(
+ role.Role,
+ role.Tasks.Split(Common.Delimiter)
+ );
+
+ return roles;
+ }
+
+ public override void AddRoleForSection(string role, string[] tasks, SectionInfo section)
+ {
+ SectionRole dbrole = new SectionRole(
+ section.Identity,
+ role,
+ String.Join(Common.Delimiter.ToString(), tasks)
+ );
+
+ try
+ {
+ // add role
+ dbrole.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateRoleForSection(string role, string[] tasks, SectionInfo section)
+ {
+ SectionRole dbrole = SectionRole.GetBySectionIDAndRole(
+ section.Identity,
+ role
+ );
+ dbrole.Tasks = String.Join(Common.Delimiter.ToString(), tasks);
+
+ try
+ {
+ // update role
+ dbrole.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveRoleForSection(string role, SectionInfo section)
+ {
+ SectionRole dbrole = SectionRole.GetBySectionIDAndRole(
+ section.Identity,
+ role
+ );
+
+ try
+ {
+ // remove certain role
+ dbrole.Delete();
+ dbrole.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveAllRolesForSection(SectionInfo section)
+ {
+ List<SectionRole> dbroles = SectionRole.GetBySectionID(section.Identity);
+
+ try
+ {
+ // remove all roles for one section
+ foreach (SectionRole role in dbroles)
+ {
+ role.Delete();
+ role.CommitChanges();
+ }
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region PortletRoles
+
+ public override RolesPermissionsDictionary GetRolesForPortlet(PortletInfo portlet)
+ {
+ List<PortletRole> dbroles = PortletRole.GetByPortletID(portlet.Identity);
+
+ // return list of roles
+ RolesPermissionsDictionary roles = new RolesPermissionsDictionary();
+
+ foreach (PortletRole role in dbroles)
+ roles.Add(
+ role.Role,
+ role.Permissions.Split(Common.Delimiter)
+ );
+
+ return roles;
+ }
+
+ public override void AddRoleForPortlet(string role, string[] permissions, PortletInfo portlet)
+ {
+ PortletRole dbrole = new PortletRole(
+ portlet.Identity,
+ role,
+ String.Join(Common.Delimiter.ToString(), permissions)
+ );
+
+ try
+ {
+ // add role
+ dbrole.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateRoleForPortlet(string role, string[] permissions, PortletInfo portlet)
+ {
+ PortletRole dbrole = PortletRole.GetByPortletIDAndRole(
+ portlet.Identity,
+ role
+ );
+ dbrole.Permissions = String.Join(Common.Delimiter.ToString(), permissions);
+
+ try
+ {
+ // update role
+ dbrole.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveRoleForPortlet(string role, PortletInfo portlet)
+ {
+ PortletRole dbrole = PortletRole.GetByPortletIDAndRole(
+ portlet.Identity,
+ role
+ );
+
+ try
+ {
+ // remove certain role
+ dbrole.Delete();
+ dbrole.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveAllRolesForPortlet(PortletInfo portlet)
+ {
+ List<PortletRole> dbrole = PortletRole.GetByPortletID(portlet.Identity);
+
+ try
+ {
+ // remove all roles for one section
+ foreach (PortletRole role in dbrole)
+ {
+ role.Delete();
+ role.CommitChanges();
+ }
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #endregion
+
+ #region Links
+
+ #region SectionContainerLink
+
+ public override int[] GetContainersForSection (SectionInfo section)
+ {
+ // get containers for specific section
+ List<SectionContainerLink> links = SectionContainerLink.GetList("SectionID = " + section.Identity);
+ List<int> list = new List<int>(links.Count);
+
+ foreach (SectionContainerLink link in links)
+ list.Add(link.ContainerID);
+
+ // return array of container ids
+ return list.ToArray();
+ }
+
+ public override int[] GetContainersInPositionForSection(SectionInfo section, int position)
+ {
+ // get containers for specific section
+ List<SectionContainerLink> links = SectionContainerLink.GetList("SectionID = " + section.Identity + " and Position = " + position);
+ List<int> list = new List<int>(links.Count);
+
+ foreach (SectionContainerLink link in links)
+ list.Add(link.ContainerID);
+
+ // return array of container ids
+ return list.ToArray();
+ }
+
+ public override bool SectionContainerLinked (SectionInfo section, ContainerInfo container)
+ {
+ SectionContainerLink link = SectionContainerLink.GetBySectionIDAndContainerID(
+ section.Identity,
+ container.Identity
+ );
+
+ try
+ {
+ // return if combination is found
+ return link.SectionID != 0 && link.ContainerID != 0;
+ }
+ catch (Exception)
+ {
+ return false;
+ }
+ }
+
+ public override int GetSectionContainerLinkOrder(SectionInfo section, ContainerInfo container)
+ {
+ SectionContainerLink link = SectionContainerLink.GetBySectionIDAndContainerID(
+ section.Identity,
+ container.Identity
+ );
+
+ return (link.SectionID != 0 && link.ContainerID != 0) ? link.SortOrder : -1;
+ }
+
+ public override int GetSectionContainerLinkPosition(SectionInfo section, ContainerInfo container)
+ {
+ SectionContainerLink link = SectionContainerLink.GetBySectionIDAndContainerID(
+ section.Identity,
+ container.Identity
+ );
+
+ return (link.SectionID != 0 && link.ContainerID != 0) ? link.Position : Int32.MinValue;
+ }
+
+ public override void AddSectionContainerLink (SectionInfo section, ContainerInfo container, int order, int position)
+ {
+ SectionContainerLink link = new SectionContainerLink(
+ section.Identity,
+ container.Identity,
+ order,
+ position
+ );
+
+ try
+ {
+ // add combination
+ link.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateSectionContainerLink(SectionInfo section, ContainerInfo container, int order, int position)
+ {
+ SectionContainerLink link = SectionContainerLink.GetBySectionIDAndContainerID(
+ section.Identity,
+ container.Identity
+ );
+ link.SortOrder = order;
+ link.Position = position;
+
+ try
+ {
+ // update combination
+ link.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveSectionContainerLink (SectionInfo section, ContainerInfo container)
+ {
+ SectionContainerLink link = SectionContainerLink.GetBySectionIDAndContainerID(
+ section.Identity,
+ container.Identity
+ );
+
+ try
+ {
+ // delete combination
+ link.Delete();
+ link.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #region ContainerPortletLink
+
+ public override int[] GetPortletsForContainer (ContainerInfo container)
+ {
+ // get portets for specific container
+ List<ContainerPortletLink> links = ContainerPortletLink.GetByContainerID(container.Identity);
+ List<int> list = new List<int>(links.Count);
+
+ foreach (ContainerPortletLink link in links)
+ list.Add(link.PortletID);
+
+ // return array of portlet ids
+ return list.ToArray();
+ }
+
+ public override bool ContainerPortletLinked (ContainerInfo container, PortletInfo portlet)
+ {
+ ContainerPortletLink link = ContainerPortletLink.GetByContainerIDAndPortletID(
+ container.Identity,
+ portlet.Identity
+ );
+
+ try
+ {
+ // return if combination is found
+ return link.ContainerID != 0 && link.PortletID != 0;
+ }
+ catch (Exception)
+ {
+ return false;
+ }
+ }
+
+ public override int GetContainerPortletLinkOrder(ContainerInfo container, PortletInfo portlet)
+ {
+ ContainerPortletLink link = ContainerPortletLink.GetByContainerIDAndPortletID(
+ container.Identity,
+ portlet.Identity
+ );
+
+ return (link.ContainerID != 0 && link.PortletID != 0) ? link.SortOrder : -1;
+ }
+
+ public override void AddContainerPortletLink (ContainerInfo container, PortletInfo portlet, int order)
+ {
+ ContainerPortletLink link = new ContainerPortletLink(
+ container.Identity,
+ portlet.Identity,
+ order
+ );
+
+ try
+ {
+ // add combination
+ link.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void UpdateContainerPortletLink(ContainerInfo container, PortletInfo portlet, int order)
+ {
+ ContainerPortletLink link = ContainerPortletLink.GetByContainerIDAndPortletID(
+ container.Identity,
+ portlet.Identity
+ );
+ link.SortOrder = order;
+
+ try
+ {
+ // update combination
+ link.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ public override void RemoveContainerPortletLink (ContainerInfo container, PortletInfo portlet)
+ {
+ ContainerPortletLink link = ContainerPortletLink.GetByContainerIDAndPortletID(
+ container.Identity,
+ portlet.Identity
+ );
+
+ try
+ {
+ // delete combination
+ link.Delete();
+ link.CommitChanges();
+ }
+ catch (Exception) { }
+ }
+
+ #endregion
+
+ #endregion
+ }
+}
34 ManagedFusion/Source/Databases/SqlServer2000/Provider/TableCollection.cs
@@ -0,0 +1,34 @@
+/*
+ * Template: This code was generated by the ManagedFusion [http://www.managedfusion.com] Data Layer Template.
+ * Created On : 11/22/2006
+ * Remarks: Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ public class TableCollection<TKey, TValue> : List<TValue>
+ where TValue : ITable<TKey>, new()
+ {
+ public TValue this[TKey primaryKey]
+ {
+ get
+ {
+ foreach (TValue entity in this)
+ if (entity.PrimaryKey.Equals(primaryKey))
+ return entity;
+
+ return new TValue();
+ }
+ }
+
+ public void CommitChanges()
+ {
+ foreach (TValue entity in this)
+ entity.CommitChanges();
+ }
+ }
+}
749 ManagedFusion/Source/Databases/SqlServer2000/Provider/Tables/Community.cs
@@ -0,0 +1,749 @@
+/*
+ * Template: This code was generated by the ManagedFusion [http://www.managedfusion.com] Data Layer Template.
+ * Created On : 11/22/2006
+ * Remarks: Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Configuration;
+using System.Data;
+using System.Data.SqlClient;
+using System.Data.SqlTypes;
+using System.Diagnostics;
+using System.Text;
+using System.Threading;
+using System.Security.Permissions;
+using System.Xml;
+using System.Xml.Serialization;
+
+namespace ManagedFusion.Data.SqlServer2000
+{
+ [DataObject(true)]
+ public partial class Community : ITable<int>
+ {
+ #region Static Methods
+
+ #region Common Methods
+
+ protected static CommunityCollection FillCollection (SqlCommand command)
+ {
+ CommunityCollection list = new CommunityCollection();
+
+ try
+ {
+ command.Connection.Open();
+ using(SqlDataReader reader = command.ExecuteReader())
+ {
+ if (reader.HasRows)
+ {
+ int[] order = new int[5];
+ order[0] = reader.GetOrdinal("CommunityID");
+ order[1] = reader.GetOrdinal("UniversalID");
+ order[2] = reader.GetOrdinal("Name");
+ order[3] = reader.GetOrdinal("Description");
+ order[4] = reader.GetOrdinal("Touched");
+
+ while (reader.Read())
+ {
+ Community entity = new Community();
+ entity._communityID = reader.IsDBNull(0) ? 0 : reader.GetInt32(order[0]); // CommunityID
+ entity._universalID = reader.IsDBNull(1) ? Guid.Empty : reader.GetGuid(order[1]); // UniversalID
+ entity._name = reader.IsDBNull(2) ? String.Empty : reader.GetString(order[2]); // Name
+ entity._description = reader.IsDBNull(3) ? (string)null : reader.GetString(order[3]); // Description
+ entity._touched = reader.IsDBNull(4) ? (DateTime)SqlDateTime.MinValue : reader.GetDateTime(order[4]); // Touched
+
+ // add to list
+ list.Add(entity);
+ }
+ }
+ }
+ } catch (Exception exc) {
+ Debug.WriteLine(exc);
+ } finally {
+ command.Connection.Close();
+ }
+
+ return list;
+ }
+
+ protected static Community FillEntity (SqlCommand command)
+ {
+ Community entity = null;
+
+ try
+ {
+ command.Connection.Open();
+ using(SqlDataReader reader = command.ExecuteReader())
+ {
+ if (reader.HasRows)
+ {
+ reader.Read();
+ entity = new Community();
+ entity._communityID = reader.IsDBNull(0) ? 0 : reader.GetInt32(reader.GetOrdinal("CommunityID"));
+ entity._universalID = reader.IsDBNull(1) ? Guid.Empty : reader.GetGuid(reader.GetOrdinal("UniversalID"));
+ entity._name = reader.IsDBNull(2) ? String.Empty : reader.GetString(reader.GetOrdinal("Name"));
+ entity._description = reader.IsDBNull(3) ? (string)null : reader.GetString(reader.GetOrdinal("Description"));
+ entity._touched = reader.IsDBNull(4) ? (DateTime)SqlDateTime.MinValue : reader.GetDateTime(reader.GetOrdinal("Touched"));
+ }
+ }
+ } catch (Exception exc) {
+ Debug.WriteLine(exc);
+ } finally {
+ if (entity == null)
+ entity = new Community();
+
+ command.Connection.Close();
+ }
+
+ return entity;
+ }
+
+ #endregion
+
+ #region Get List
+
+ [DataObjectMethod(DataObjectMethodType.Select, false)]
+ public static CommunityCollection GetList (string where, string orderBy)
+ {
+ StringBuilder sb = new StringBuilder(10);
+
+ sb.Append(@"select * from [Community] ");
+
+ if (String.IsNullOrEmpty(where) == false)
+ {
+ sb.Append(" where ");
+ sb.Append("(");
+ sb.Append(where);
+ sb.Append(")");
+ }
+
+ if (String.IsNullOrEmpty(orderBy) == false)
+ {
+ sb.Append(" order by ");
+ sb.Append(orderBy);
+ }
+
+ using(SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ManagedFusion"].ConnectionString))
+ {
+ using (SqlCommand command = connection.CreateCommand())
+ {
+ command.CommandText = sb.ToString();
+ command.CommandType = CommandType.Text;
+
+ return FillCollection(command);
+ }
+ }
+ }
+
+ [DataObjectMethod(DataObjectMethodType.Select, false)]
+ public static CommunityCollection GetList (string where)
+ {
+ return GetList(where, String.Empty);
+ }
+
+ [DataObjectMethod(DataObjectMethodType.Select, true)]
+ public static CommunityCollection GetList ()
+ {
+ return GetList(String.Empty, String.Empty);
+ }
+
+ #endregion
+
+ #region Get First
+
+ [DataObjectMethod(DataObjectMethodType.Select, false)]
+ public static Community GetFirst (string where, string orderBy)
+ {
+ StringBuilder sb = new StringBuilder(10);
+
+ sb.Append(@"select top 1 * from [Community] ");
+
+ if (String.IsNullOrEmpty(where) == false)
+ {
+ sb.Append(" where ");
+ sb.Append("(");
+ sb.Append(where);
+ sb.Append(")");
+ }
+
+ if (String.IsNullOrEmpty(orderBy) == false)
+ {
+ sb.Append(" order by ");
+ sb.Append(orderBy);
+ }
+
+ using(SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ManagedFusion"].ConnectionString))
+ {
+ using (SqlCommand command = connection.CreateCommand())
+ {
+ command.CommandText = sb.ToString();
+ command.CommandType = CommandType.Text;
+
+ return FillEntity(command);
+ }