FoghornModel.edmx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="FoghornModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008"
  8. xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator"
  9. xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  10. <EntityContainer Name="FoghornModelStoreContainer">
  11. <EntitySet Name="Subscribers" EntityType="FoghornModel.Store.Subscribers" store:Type="Tables" Schema="dbo" />
  12. <EntitySet Name="Notifications" EntityType="FoghornModel.Store.Notifications" store:Type="Tables"
  13. Schema="dbo" />
  14. <EntitySet Name="SendingApplications" EntityType="FoghornModel.Store.SendingApplications" store:Type="Tables"
  15. Schema="dbo" />
  16. <EntitySet Name="NotificationTypes" EntityType="FoghornModel.Store.NotificationTypes" store:Type="Tables"
  17. Schema="dbo" />
  18. <EntitySet Name="SubscriberNotification" EntityType="FoghornModel.Store.SubscriberNotification"
  19. store:Type="Tables" Schema="dbo" />
  20. <AssociationSet Name="FK_SubscriberNotification_Subscriber"
  21. Association="FoghornModel.Store.FK_SubscriberNotification_Subscriber">
  22. <End Role="Subscriber" EntitySet="Subscribers" />
  23. <End Role="SubscriberNotification" EntitySet="SubscriberNotification" />
  24. </AssociationSet>
  25. <AssociationSet Name="FK_SubscriberNotification_Notification"
  26. Association="FoghornModel.Store.FK_SubscriberNotification_Notification">
  27. <End Role="Notification" EntitySet="Notifications" />
  28. <End Role="SubscriberNotification" EntitySet="SubscriberNotification" />
  29. </AssociationSet>
  30. <AssociationSet Name="SendingApplicationSubscriber"
  31. Association="FoghornModel.Store.SendingApplicationSubscriber">
  32. <End Role="SendingApplication" EntitySet="SendingApplications" />
  33. <End Role="Subscriber" EntitySet="Subscribers" />
  34. </AssociationSet>
  35. <AssociationSet Name="NotificationNotificationType"
  36. Association="FoghornModel.Store.NotificationNotificationType">
  37. <End Role="Notification" EntitySet="Notifications" />
  38. <End Role="NotificationType" EntitySet="NotificationTypes" />
  39. </AssociationSet>
  40. <AssociationSet Name="SendingApplicationNotificationType"
  41. Association="FoghornModel.Store.SendingApplicationNotificationType">
  42. <End Role="SendingApplication" EntitySet="SendingApplications" />
  43. <End Role="NotificationType" EntitySet="NotificationTypes" />
  44. </AssociationSet>
  45. </EntityContainer>
  46. <EntityType Name="Subscribers">
  47. <Key>
  48. <PropertyRef Name="SubscriberId" />
  49. </Key>
  50. <Property Name="SubscriberId" Type="uniqueidentifier" Nullable="false" />
  51. <Property Name="SubscriberName" Type="nvarchar" Nullable="false" MaxLength="255" />
  52. <Property Name="Port" Type="int" Nullable="true" />
  53. <Property Name="HostName" Type="nvarchar" Nullable="false" MaxLength="255" />
  54. <Property Name="Password" Type="nvarchar" Nullable="false" MaxLength="20" />
  55. <Property Name="SendingApplication_SendingApplicationId" Type="int" Nullable="false" />
  56. </EntityType>
  57. <EntityType Name="Notifications">
  58. <Key>
  59. <PropertyRef Name="NotificationId" />
  60. </Key>
  61. <Property Name="NotificationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  62. <Property Name="NotificationTitle" Type="nvarchar(max)" Nullable="false" />
  63. <Property Name="NotificationMessage" Type="nvarchar(max)" Nullable="false" />
  64. <Property Name="SentDateTime" Type="datetime" Nullable="false" />
  65. <Property Name="Priority" Type="int" Nullable="false" DefaultValue="0" />
  66. <Property Name="Sticky" Type="bit" Nullable="false" DefaultValue="false" />
  67. <Property Name="NotificationType_NotificationTypeId" Type="int" Nullable="false" />
  68. </EntityType>
  69. <EntityType Name="SendingApplications">
  70. <Key>
  71. <PropertyRef Name="SendingApplicationId" />
  72. </Key>
  73. <Property Name="SendingApplicationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  74. <Property Name="SendingApplicationName" Type="nvarchar" Nullable="false" MaxLength="255" />
  75. <Property Name="SendingApplicationIcon" Type="varbinary(max)" Nullable="true" />
  76. </EntityType>
  77. <EntityType Name="NotificationTypes">
  78. <Key>
  79. <PropertyRef Name="NotificationTypeId" />
  80. </Key>
  81. <Property Name="NotificationTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  82. <Property Name="NotificationTypeName" Type="nvarchar" Nullable="false" MaxLength="32" />
  83. <Property Name="NotificationTypeDisplayName" Type="nvarchar" Nullable="false" MaxLength="255" />
  84. <Property Name="NotificationTypeIcon" Type="varbinary(max)" Nullable="true" />
  85. <Property Name="SendingApplication_SendingApplicationId" Type="int" Nullable="false" />
  86. </EntityType>
  87. <EntityType Name="SubscriberNotification">
  88. <Key>
  89. <PropertyRef Name="SentToSubscribers_SubscriberId" />
  90. <PropertyRef Name="NotificationsSent_NotificationId" />
  91. </Key>
  92. <Property Name="SentToSubscribers_SubscriberId" Type="uniqueidentifier" Nullable="false" />
  93. <Property Name="NotificationsSent_NotificationId" Type="int" Nullable="false" />
  94. </EntityType>
  95. <Association Name="SendingApplicationSubscriber">
  96. <End Role="SendingApplication" Type="FoghornModel.Store.SendingApplications" Multiplicity="1">
  97. <OnDelete Action="Cascade" />
  98. </End>
  99. <End Role="Subscriber" Type="FoghornModel.Store.Subscribers" Multiplicity="*" />
  100. <ReferentialConstraint>
  101. <Principal Role="SendingApplication">
  102. <PropertyRef Name="SendingApplicationId" />
  103. </Principal>
  104. <Dependent Role="Subscriber">
  105. <PropertyRef Name="SendingApplication_SendingApplicationId" />
  106. </Dependent>
  107. </ReferentialConstraint>
  108. </Association>
  109. <Association Name="NotificationNotificationType">
  110. <End Role="Notification" Type="FoghornModel.Store.Notifications" Multiplicity="*" />
  111. <End Role="NotificationType" Type="FoghornModel.Store.NotificationTypes" Multiplicity="1" />
  112. <ReferentialConstraint>
  113. <Principal Role="NotificationType">
  114. <PropertyRef Name="NotificationTypeId" />
  115. </Principal>
  116. <Dependent Role="Notification">
  117. <PropertyRef Name="NotificationType_NotificationTypeId" />
  118. </Dependent>
  119. </ReferentialConstraint>
  120. </Association>
  121. <Association Name="SendingApplicationNotificationType">
  122. <End Role="SendingApplication" Type="FoghornModel.Store.SendingApplications" Multiplicity="1">
  123. <OnDelete Action="Cascade" />
  124. </End>
  125. <End Role="NotificationType" Type="FoghornModel.Store.NotificationTypes" Multiplicity="*" />
  126. <ReferentialConstraint>
  127. <Principal Role="SendingApplication">
  128. <PropertyRef Name="SendingApplicationId" />
  129. </Principal>
  130. <Dependent Role="NotificationType">
  131. <PropertyRef Name="SendingApplication_SendingApplicationId" />
  132. </Dependent>
  133. </ReferentialConstraint>
  134. </Association>
  135. <Association Name="FK_SubscriberNotification_Subscriber">
  136. <End Role="Subscriber" Type="FoghornModel.Store.Subscribers" Multiplicity="1" />
  137. <End Role="SubscriberNotification" Type="FoghornModel.Store.SubscriberNotification" Multiplicity="*" />
  138. <ReferentialConstraint>
  139. <Principal Role="Subscriber">
  140. <PropertyRef Name="SubscriberId" />
  141. </Principal>
  142. <Dependent Role="SubscriberNotification">
  143. <PropertyRef Name="SentToSubscribers_SubscriberId" />
  144. </Dependent>
  145. </ReferentialConstraint>
  146. </Association>
  147. <Association Name="FK_SubscriberNotification_Notification">
  148. <End Role="SubscriberNotification" Type="FoghornModel.Store.SubscriberNotification" Multiplicity="*" />
  149. <End Role="Notification" Type="FoghornModel.Store.Notifications" Multiplicity="1" />
  150. <ReferentialConstraint>
  151. <Principal Role="Notification">
  152. <PropertyRef Name="NotificationId" />
  153. </Principal>
  154. <Dependent Role="SubscriberNotification">
  155. <PropertyRef Name="NotificationsSent_NotificationId" />
  156. </Dependent>
  157. </ReferentialConstraint>
  158. </Association>
  159. </Schema>
  160. </edmx:StorageModels>
  161. <!-- CSDL content -->
  162. <edmx:ConceptualModels>
  163. <Schema Namespace="FoghornModel" Alias="Self" p1:UseStrongSpatialTypes="false"
  164. xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation"
  165. xmlns:p1="http://schemas.microsoft.com/ado/2009/02/edm/annotation"
  166. xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  167. <EntityContainer Name="FoghornEntities" p1:LazyLoadingEnabled="true">
  168. <EntitySet Name="Subscribers" EntityType="FoghornModel.Subscriber" />
  169. <EntitySet Name="Notifications" EntityType="FoghornModel.Notification" />
  170. <AssociationSet Name="SubscriberNotification" Association="FoghornModel.SubscriberNotification">
  171. <End Role="Subscriber" EntitySet="Subscribers" />
  172. <End Role="Notification" EntitySet="Notifications" />
  173. </AssociationSet>
  174. <EntitySet Name="SendingApplications" EntityType="FoghornModel.SendingApplication" />
  175. <AssociationSet Name="SendingApplicationSubscriber" Association="FoghornModel.SendingApplicationSubscriber">
  176. <End Role="SendingApplication" EntitySet="SendingApplications" />
  177. <End Role="Subscriber" EntitySet="Subscribers" />
  178. </AssociationSet>
  179. <EntitySet Name="NotificationTypes" EntityType="FoghornModel.NotificationType" />
  180. <AssociationSet Name="NotificationNotificationType" Association="FoghornModel.NotificationNotificationType">
  181. <End Role="Notification" EntitySet="Notifications" />
  182. <End Role="NotificationType" EntitySet="NotificationTypes" />
  183. </AssociationSet>
  184. <AssociationSet Name="SendingApplicationNotificationType"
  185. Association="FoghornModel.SendingApplicationNotificationType">
  186. <End Role="SendingApplication" EntitySet="SendingApplications" />
  187. <End Role="NotificationType" EntitySet="NotificationTypes" />
  188. </AssociationSet>
  189. </EntityContainer>
  190. <EntityType Name="Subscriber">
  191. <Key>
  192. <PropertyRef Name="SubscriberId" />
  193. </Key>
  194. <Property Type="Guid" Name="SubscriberId" Nullable="false" annotation:StoreGeneratedPattern="None" />
  195. <Property Type="String" Name="SubscriberName" Nullable="false" MaxLength="255" />
  196. <Property Type="Int32" Name="Port" Nullable="true" />
  197. <NavigationProperty Name="NotificationsSent" Relationship="FoghornModel.SubscriberNotification"
  198. FromRole="Subscriber" ToRole="Notification" />
  199. <NavigationProperty Name="SendingApplication" Relationship="FoghornModel.SendingApplicationSubscriber"
  200. FromRole="Subscriber" ToRole="SendingApplication" />
  201. <Property Type="String" Name="HostName" Nullable="false" MaxLength="255" />
  202. <Property Type="String" Name="Password" Nullable="false" MaxLength="20" />
  203. </EntityType>
  204. <EntityType Name="Notification">
  205. <Key>
  206. <PropertyRef Name="NotificationId" />
  207. </Key>
  208. <Property Type="Int32" Name="NotificationId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  209. <NavigationProperty Name="SentToSubscribers" Relationship="FoghornModel.SubscriberNotification"
  210. FromRole="Notification" ToRole="Subscriber" />
  211. <Property Type="String" Name="NotificationTitle" Nullable="false" />
  212. <Property Type="String" Name="NotificationMessage" Nullable="false" />
  213. <NavigationProperty Name="NotificationType" Relationship="FoghornModel.NotificationNotificationType"
  214. FromRole="Notification" ToRole="NotificationType" />
  215. <Property Type="DateTime" Name="SentDateTime" Nullable="false" annotation:StoreGeneratedPattern="None" />
  216. <Property Type="Int32" Name="Priority" Nullable="false" DefaultValue="0" />
  217. <Property Type="Boolean" Name="Sticky" Nullable="false" DefaultValue="False" />
  218. </EntityType>
  219. <Association Name="SubscriberNotification">
  220. <End Type="FoghornModel.Subscriber" Role="Subscriber" Multiplicity="*" />
  221. <End Type="FoghornModel.Notification" Role="Notification" Multiplicity="*">
  222. </End>
  223. </Association>
  224. <EntityType Name="SendingApplication">
  225. <Key>
  226. <PropertyRef Name="SendingApplicationId" />
  227. </Key>
  228. <Property Type="Int32" Name="SendingApplicationId" Nullable="false"
  229. annotation:StoreGeneratedPattern="Identity" />
  230. <Property Type="String" Name="SendingApplicationName" Nullable="false" MaxLength="255" />
  231. <NavigationProperty Name="Subscribers" Relationship="FoghornModel.SendingApplicationSubscriber"
  232. FromRole="SendingApplication" ToRole="Subscriber" />
  233. <NavigationProperty Name="NotificationTypes" Relationship="FoghornModel.SendingApplicationNotificationType"
  234. FromRole="SendingApplication" ToRole="NotificationType" />
  235. <Property Type="Binary" Name="SendingApplicationIcon" Nullable="true" />
  236. </EntityType>
  237. <Association Name="SendingApplicationSubscriber">
  238. <End Type="FoghornModel.SendingApplication" Role="SendingApplication" Multiplicity="1">
  239. <OnDelete Action="Cascade" />
  240. </End>
  241. <End Type="FoghornModel.Subscriber" Role="Subscriber" Multiplicity="*" />
  242. </Association>
  243. <EntityType Name="NotificationType">
  244. <Key>
  245. <PropertyRef Name="NotificationTypeId" />
  246. </Key>
  247. <Property Type="Int32" Name="NotificationTypeId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  248. <Property Type="String" Name="NotificationTypeName" Nullable="false" MaxLength="32" />
  249. <Property Type="String" Name="NotificationTypeDisplayName" Nullable="false" MaxLength="255" />
  250. <NavigationProperty Name="SendingApplication" Relationship="FoghornModel.SendingApplicationNotificationType"
  251. FromRole="NotificationType" ToRole="SendingApplication" />
  252. <Property Type="Binary" Name="NotificationTypeIcon" Nullable="true" />
  253. </EntityType>
  254. <Association Name="NotificationNotificationType">
  255. <End Type="FoghornModel.Notification" Role="Notification" Multiplicity="*" />
  256. <End Type="FoghornModel.NotificationType" Role="NotificationType" Multiplicity="1" />
  257. </Association>
  258. <Association Name="SendingApplicationNotificationType">
  259. <End Type="FoghornModel.SendingApplication" Role="SendingApplication" Multiplicity="1">
  260. <OnDelete Action="Cascade" />
  261. </End>
  262. <End Type="FoghornModel.NotificationType" Role="NotificationType" Multiplicity="*">
  263. </End>
  264. </Association>
  265. </Schema>
  266. </edmx:ConceptualModels>
  267. <!-- C-S mapping content -->
  268. <edmx:Mappings>
  269. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  270. <EntityContainerMapping StorageEntityContainer="FoghornModelStoreContainer"
  271. CdmEntityContainer="FoghornEntities">
  272. <EntitySetMapping Name="Subscribers">
  273. <EntityTypeMapping TypeName="IsTypeOf(FoghornModel.Subscriber)">
  274. <MappingFragment StoreEntitySet="Subscribers">
  275. <ScalarProperty Name="SubscriberId" ColumnName="SubscriberId" />
  276. <ScalarProperty Name="SubscriberName" ColumnName="SubscriberName" />
  277. <ScalarProperty Name="Port" ColumnName="Port" />
  278. <ScalarProperty Name="HostName" ColumnName="HostName" />
  279. <ScalarProperty Name="Password" ColumnName="Password" />
  280. </MappingFragment>
  281. </EntityTypeMapping>
  282. </EntitySetMapping>
  283. <EntitySetMapping Name="Notifications">
  284. <EntityTypeMapping TypeName="IsTypeOf(FoghornModel.Notification)">
  285. <MappingFragment StoreEntitySet="Notifications">
  286. <ScalarProperty Name="NotificationId" ColumnName="NotificationId" />
  287. <ScalarProperty Name="NotificationTitle" ColumnName="NotificationTitle" />
  288. <ScalarProperty Name="NotificationMessage" ColumnName="NotificationMessage" />
  289. <ScalarProperty Name="SentDateTime" ColumnName="SentDateTime" />
  290. <ScalarProperty Name="Priority" ColumnName="Priority" />
  291. <ScalarProperty Name="Sticky" ColumnName="Sticky" />
  292. </MappingFragment>
  293. </EntityTypeMapping>
  294. </EntitySetMapping>
  295. <EntitySetMapping Name="SendingApplications">
  296. <EntityTypeMapping TypeName="IsTypeOf(FoghornModel.SendingApplication)">
  297. <MappingFragment StoreEntitySet="SendingApplications">
  298. <ScalarProperty Name="SendingApplicationId" ColumnName="SendingApplicationId" />
  299. <ScalarProperty Name="SendingApplicationName" ColumnName="SendingApplicationName" />
  300. <ScalarProperty Name="SendingApplicationIcon" ColumnName="SendingApplicationIcon" />
  301. </MappingFragment>
  302. </EntityTypeMapping>
  303. </EntitySetMapping>
  304. <EntitySetMapping Name="NotificationTypes">
  305. <EntityTypeMapping TypeName="IsTypeOf(FoghornModel.NotificationType)">
  306. <MappingFragment StoreEntitySet="NotificationTypes">
  307. <ScalarProperty Name="NotificationTypeId" ColumnName="NotificationTypeId" />
  308. <ScalarProperty Name="NotificationTypeName" ColumnName="NotificationTypeName" />
  309. <ScalarProperty Name="NotificationTypeDisplayName" ColumnName="NotificationTypeDisplayName" />
  310. <ScalarProperty Name="NotificationTypeIcon" ColumnName="NotificationTypeIcon" />
  311. </MappingFragment>
  312. </EntityTypeMapping>
  313. </EntitySetMapping>
  314. <AssociationSetMapping Name="SubscriberNotification" TypeName="FoghornModel.SubscriberNotification"
  315. StoreEntitySet="SubscriberNotification">
  316. <EndProperty Name="Subscriber">
  317. <ScalarProperty Name="SubscriberId" ColumnName="SentToSubscribers_SubscriberId" />
  318. </EndProperty>
  319. <EndProperty Name="Notification">
  320. <ScalarProperty Name="NotificationId" ColumnName="NotificationsSent_NotificationId" />
  321. </EndProperty>
  322. </AssociationSetMapping>
  323. <AssociationSetMapping Name="SendingApplicationSubscriber"
  324. TypeName="FoghornModel.SendingApplicationSubscriber" StoreEntitySet="Subscribers">
  325. <EndProperty Name="SendingApplication">
  326. <ScalarProperty Name="SendingApplicationId" ColumnName="SendingApplication_SendingApplicationId" />
  327. </EndProperty>
  328. <EndProperty Name="Subscriber">
  329. <ScalarProperty Name="SubscriberId" ColumnName="SubscriberId" />
  330. </EndProperty>
  331. </AssociationSetMapping>
  332. <AssociationSetMapping Name="NotificationNotificationType"
  333. TypeName="FoghornModel.NotificationNotificationType" StoreEntitySet="Notifications">
  334. <EndProperty Name="NotificationType">
  335. <ScalarProperty Name="NotificationTypeId" ColumnName="NotificationType_NotificationTypeId" />
  336. </EndProperty>
  337. <EndProperty Name="Notification">
  338. <ScalarProperty Name="NotificationId" ColumnName="NotificationId" />
  339. </EndProperty>
  340. </AssociationSetMapping>
  341. <AssociationSetMapping Name="SendingApplicationNotificationType"
  342. TypeName="FoghornModel.SendingApplicationNotificationType"
  343. StoreEntitySet="NotificationTypes">
  344. <EndProperty Name="SendingApplication">
  345. <ScalarProperty Name="SendingApplicationId" ColumnName="SendingApplication_SendingApplicationId" />
  346. </EndProperty>
  347. <EndProperty Name="NotificationType">
  348. <ScalarProperty Name="NotificationTypeId" ColumnName="NotificationTypeId" />
  349. </EndProperty>
  350. </AssociationSetMapping>
  351. </EntityContainerMapping>
  352. </Mapping>
  353. </edmx:Mappings>
  354. </edmx:Runtime>
  355. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  356. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  357. <Connection>
  358. <DesignerInfoPropertySet>
  359. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  360. </DesignerInfoPropertySet>
  361. </Connection>
  362. <Options>
  363. <DesignerInfoPropertySet>
  364. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  365. <DesignerProperty Name="EnablePluralization" Value="True" />
  366. <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
  367. <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
  368. </DesignerInfoPropertySet>
  369. </Options>
  370. <!-- Diagram content (shape and connector positions) -->
  371. <Diagrams></Diagrams>
  372. </Designer>
  373. </edmx:Edmx>