Database updates

This commit is contained in:
Andre Beging
2022-04-08 16:10:26 +02:00
parent e8f9c4c0f5
commit 7fb5ecf04a
15 changed files with 583 additions and 180 deletions

View File

@@ -153,26 +153,45 @@
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName> <TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
</Oid> </Oid>
</Model> </Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>10</OID>
<Parent>2</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>126.5 px</Y>
</Location>
<Size>
<Width>162 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>bf41429c-3b00-4d34-9851-bf35a3649fd2</Path>
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
</Oid>
</Model>
</Children> </Children>
<Size> <Size>
<Width>163 px</Width> <Width>163 px</Width>
<Height>127 px</Height> <Height>145 px</Height>
</Size> </Size>
<MaxSize> <MaxSize>
<Width>0 px</Width> <Width>0 px</Width>
<Height>127 px</Height> <Height>145 px</Height>
</MaxSize> </MaxSize>
</Model> </Model>
<Model xsi:type="RelationPropertiesVwModel"> <Model xsi:type="RelationPropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>10</OID> <OID>11</OID>
<Parent>1</Parent> <Parent>1</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="RelationPropertyVwModel"> <Model xsi:type="RelationPropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>11</OID> <OID>12</OID>
<Parent>10</Parent> <Parent>11</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Size> <Size>
@@ -187,7 +206,7 @@
</Children> </Children>
<Location> <Location>
<X>0 px</X> <X>0 px</X>
<Y>126 px</Y> <Y>144 px</Y>
</Location> </Location>
<Size> <Size>
<Width>163 px</Width> <Width>163 px</Width>
@@ -201,20 +220,20 @@
</Model> </Model>
</Children> </Children>
<Location> <Location>
<X>208 px</X> <X>248 px</X>
<Y>-56 px</Y> <Y>-64 px</Y>
</Location> </Location>
<Size> <Size>
<Width>168 px</Width> <Width>168 px</Width>
<Height>212 px</Height> <Height>230 px</Height>
</Size> </Size>
<MinSize> <MinSize>
<Width>100 px</Width> <Width>100 px</Width>
<Height>212 px</Height> <Height>230 px</Height>
</MinSize> </MinSize>
<MaxSize> <MaxSize>
<Width>800 px</Width> <Width>800 px</Width>
<Height>212 px</Height> <Height>230 px</Height>
</MaxSize> </MaxSize>
<Ports /> <Ports />
<Oid xsi:type="SchemaModelOID"> <Oid xsi:type="SchemaModelOID">
@@ -225,20 +244,20 @@
</Model> </Model>
<Model xsi:type="EnumTypeVwModel"> <Model xsi:type="EnumTypeVwModel">
<CustomProperties> <CustomProperties>
<OID>12</OID> <OID>13</OID>
<Parent>0</Parent> <Parent>0</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="PropertiesVwModel"> <Model xsi:type="PropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>13</OID> <OID>14</OID>
<Parent>12</Parent> <Parent>13</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>14</OID> <OID>15</OID>
<Parent>13</Parent> <Parent>14</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -256,8 +275,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>15</OID> <OID>16</OID>
<Parent>13</Parent> <Parent>14</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -269,14 +288,14 @@
<Height>18 px</Height> <Height>18 px</Height>
</Size> </Size>
<Oid xsi:type="SchemaModelOID"> <Oid xsi:type="SchemaModelOID">
<Path>fbcf22ae-d06c-4ef4-9375-7da0116c1756</Path> <Path>b61df6d8-6f93-4605-bcb8-40e631176cd7</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName> <TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid> </Oid>
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>16</OID> <OID>17</OID>
<Parent>13</Parent> <Parent>14</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -288,14 +307,14 @@
<Height>18 px</Height> <Height>18 px</Height>
</Size> </Size>
<Oid xsi:type="SchemaModelOID"> <Oid xsi:type="SchemaModelOID">
<Path>5121abf9-8963-4853-92fc-38b4be002089</Path> <Path>833a2e4b-3cf7-476c-9a9a-3aeb69315f51</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName> <TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid> </Oid>
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>17</OID> <OID>18</OID>
<Parent>13</Parent> <Parent>14</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -307,56 +326,18 @@
<Height>18 px</Height> <Height>18 px</Height>
</Size> </Size>
<Oid xsi:type="SchemaModelOID"> <Oid xsi:type="SchemaModelOID">
<Path>9d01dc6b-a794-47f8-ac79-0ff53861181c</Path> <Path>23192dfc-203b-472d-84cb-63a7708d8b67</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>18</OID>
<Parent>13</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>72.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>b9fd95ad-d147-41df-94c7-3eb0c8eadb90</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>19</OID>
<Parent>13</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>90.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>b61df6d8-6f93-4605-bcb8-40e631176cd7</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName> <TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid> </Oid>
</Model> </Model>
</Children> </Children>
<Size> <Size>
<Width>145 px</Width> <Width>145 px</Width>
<Height>108 px</Height> <Height>72 px</Height>
</Size> </Size>
<MaxSize> <MaxSize>
<Width>0 px</Width> <Width>0 px</Width>
<Height>109 px</Height> <Height>73 px</Height>
</MaxSize> </MaxSize>
</Model> </Model>
</Children> </Children>
@@ -366,15 +347,15 @@
</Location> </Location>
<Size> <Size>
<Width>150 px</Width> <Width>150 px</Width>
<Height>157 px</Height> <Height>121 px</Height>
</Size> </Size>
<MinSize> <MinSize>
<Width>100 px</Width> <Width>100 px</Width>
<Height>157 px</Height> <Height>121 px</Height>
</MinSize> </MinSize>
<MaxSize> <MaxSize>
<Width>800 px</Width> <Width>800 px</Width>
<Height>157 px</Height> <Height>121 px</Height>
</MaxSize> </MaxSize>
<Ports /> <Ports />
<Oid xsi:type="SchemaModelOID"> <Oid xsi:type="SchemaModelOID">
@@ -385,20 +366,20 @@
</Model> </Model>
<Model xsi:type="ClassVwModel"> <Model xsi:type="ClassVwModel">
<CustomProperties> <CustomProperties>
<OID>20</OID> <OID>19</OID>
<Parent>0</Parent> <Parent>0</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="PropertiesVwModel"> <Model xsi:type="PropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>21</OID> <OID>20</OID>
<Parent>20</Parent> <Parent>19</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>22</OID> <OID>21</OID>
<Parent>21</Parent> <Parent>20</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -416,8 +397,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>23</OID> <OID>22</OID>
<Parent>21</Parent> <Parent>20</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -435,8 +416,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>24</OID> <OID>23</OID>
<Parent>21</Parent> <Parent>20</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -454,8 +435,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>25</OID> <OID>24</OID>
<Parent>21</Parent> <Parent>20</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -473,8 +454,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>26</OID> <OID>25</OID>
<Parent>21</Parent> <Parent>20</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -492,8 +473,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>27</OID> <OID>26</OID>
<Parent>21</Parent> <Parent>20</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -521,14 +502,14 @@
</Model> </Model>
<Model xsi:type="RelationPropertiesVwModel"> <Model xsi:type="RelationPropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>28</OID> <OID>27</OID>
<Parent>20</Parent> <Parent>19</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="RelationPropertyVwModel"> <Model xsi:type="RelationPropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>29</OID> <OID>28</OID>
<Parent>28</Parent> <Parent>27</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Size> <Size>
@@ -557,8 +538,8 @@
</Model> </Model>
</Children> </Children>
<Location> <Location>
<X>-136 px</X> <X>-64 px</X>
<Y>256 px</Y> <Y>216 px</Y>
</Location> </Location>
<Size> <Size>
<Width>150 px</Width> <Width>150 px</Width>
@@ -581,20 +562,20 @@
</Model> </Model>
<Model xsi:type="ClassVwModel"> <Model xsi:type="ClassVwModel">
<CustomProperties> <CustomProperties>
<OID>30</OID> <OID>29</OID>
<Parent>0</Parent> <Parent>0</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="PropertiesVwModel"> <Model xsi:type="PropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>31</OID> <OID>30</OID>
<Parent>30</Parent> <Parent>29</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>32</OID> <OID>31</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -612,8 +593,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>33</OID> <OID>32</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -631,8 +612,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>34</OID> <OID>33</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -650,8 +631,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>35</OID> <OID>34</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -669,8 +650,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>36</OID> <OID>35</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -688,8 +669,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>37</OID> <OID>36</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -707,8 +688,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>38</OID> <OID>37</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -726,8 +707,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>39</OID> <OID>38</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -745,8 +726,8 @@
</Model> </Model>
<Model xsi:type="PropertyVwModel"> <Model xsi:type="PropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>40</OID> <OID>39</OID>
<Parent>31</Parent> <Parent>30</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -774,14 +755,14 @@
</Model> </Model>
<Model xsi:type="RelationPropertiesVwModel"> <Model xsi:type="RelationPropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>41</OID> <OID>40</OID>
<Parent>30</Parent> <Parent>29</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="RelationPropertyVwModel"> <Model xsi:type="RelationPropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>42</OID> <OID>41</OID>
<Parent>41</Parent> <Parent>40</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Size> <Size>
@@ -795,8 +776,8 @@
</Model> </Model>
<Model xsi:type="RelationPropertyVwModel"> <Model xsi:type="RelationPropertyVwModel">
<CustomProperties> <CustomProperties>
<OID>43</OID> <OID>42</OID>
<Parent>41</Parent> <Parent>40</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -853,35 +834,35 @@
</Model> </Model>
<Model xsi:type="AssociationVwModel"> <Model xsi:type="AssociationVwModel">
<CustomProperties> <CustomProperties>
<OID>44</OID> <OID>43</OID>
<OutModel>1</OutModel> <OutModel>1</OutModel>
<InModel>30</InModel> <InModel>29</InModel>
<OutPort>45</OutPort> <OutPort>44</OutPort>
<InPort>46</InPort> <InPort>45</InPort>
<Parent>0</Parent> <Parent>0</Parent>
</CustomProperties> </CustomProperties>
<PortAnchors> <PortAnchors>
<Port> <Port>
<Location> <Location>
<X>126 px</X> <X>42 px</X>
<Y>0 px</Y> <Y>0 px</Y>
</Location> </Location>
<Anchors>Left Right</Anchors> <Anchors>Left Right</Anchors>
<Align>Bottom</Align> <Align>Bottom</Align>
<CustomProperties> <CustomProperties>
<OID>45</OID> <OID>44</OID>
<PortType>FloatAnchor</PortType> <PortType>FloatAnchor</PortType>
</CustomProperties> </CustomProperties>
</Port> </Port>
<Port> <Port>
<Location> <Location>
<X>174 px</X> <X>130 px</X>
<Y>0 px</Y> <Y>0 px</Y>
</Location> </Location>
<Anchors>Left Right</Anchors> <Anchors>Left Right</Anchors>
<Align>Top</Align> <Align>Top</Align>
<CustomProperties> <CustomProperties>
<OID>46</OID> <OID>45</OID>
<PortType>FloatAnchor</PortType> <PortType>FloatAnchor</PortType>
</CustomProperties> </CustomProperties>
</Port> </Port>
@@ -894,20 +875,20 @@
</Model> </Model>
<Model xsi:type="EnumTypeVwModel"> <Model xsi:type="EnumTypeVwModel">
<CustomProperties> <CustomProperties>
<OID>47</OID> <OID>46</OID>
<Parent>0</Parent> <Parent>0</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="PropertiesVwModel"> <Model xsi:type="PropertiesVwModel">
<CustomProperties> <CustomProperties>
<OID>48</OID> <OID>47</OID>
<Parent>47</Parent> <Parent>46</Parent>
</CustomProperties> </CustomProperties>
<Children> <Children>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>49</OID> <OID>48</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -925,8 +906,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>50</OID> <OID>49</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -944,8 +925,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>51</OID> <OID>50</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -963,8 +944,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>52</OID> <OID>51</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -982,8 +963,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>53</OID> <OID>52</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -1001,8 +982,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>54</OID> <OID>53</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -1020,8 +1001,8 @@
</Model> </Model>
<Model xsi:type="EnumTypeMemberVwModel"> <Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties> <CustomProperties>
<OID>55</OID> <OID>54</OID>
<Parent>48</Parent> <Parent>47</Parent>
</CustomProperties> </CustomProperties>
<Children /> <Children />
<Location> <Location>
@@ -1073,47 +1054,47 @@
</Model> </Model>
<Model xsi:type="AssociationVwModel"> <Model xsi:type="AssociationVwModel">
<CustomProperties> <CustomProperties>
<OID>56</OID> <OID>55</OID>
<OutModel>20</OutModel> <OutModel>19</OutModel>
<InModel>30</InModel> <InModel>29</InModel>
<OutPort>57</OutPort> <OutPort>56</OutPort>
<InPort>58</InPort> <InPort>57</InPort>
<Parent>0</Parent> <Parent>0</Parent>
</CustomProperties> </CustomProperties>
<PortAnchors> <PortAnchors>
<Port> <Port>
<Location> <Location>
<X>0 px</X> <X>0 px</X>
<Y>97 px</Y> <Y>153 px</Y>
</Location> </Location>
<Anchors>Top Bottom</Anchors> <Anchors>Top Bottom</Anchors>
<Align>Right</Align> <Align>Right</Align>
<CustomProperties> <CustomProperties>
<OID>57</OID> <OID>56</OID>
<PortType>FloatAnchor</PortType> <PortType>FloatAnchor</PortType>
</CustomProperties> </CustomProperties>
</Port> </Port>
<Port> <Port>
<Location> <Location>
<X>0 px</X> <X>0 px</X>
<Y>108.319587628866 px</Y> <Y>41 px</Y>
</Location> </Location>
<Anchors>Top Bottom</Anchors> <Anchors>Top Bottom</Anchors>
<Align>Left</Align> <Align>Left</Align>
<CustomProperties> <CustomProperties>
<OID>58</OID> <OID>57</OID>
<PortType>FloatAnchor</PortType> <PortType>FloatAnchor</PortType>
</CustomProperties> </CustomProperties>
</Port> </Port>
</PortAnchors> </PortAnchors>
<BendPoints> <BendPoints>
<PointD> <PointD>
<X>34 px</X> <X>106 px</X>
<Y>353 px</Y> <Y>369 px</Y>
</PointD> </PointD>
<PointD> <PointD>
<X>34 px</X> <X>106 px</X>
<Y>364.319587628866 px</Y> <Y>297 px</Y>
</PointD> </PointD>
</BendPoints> </BendPoints>
<IsManuallyRouted>false</IsManuallyRouted> <IsManuallyRouted>false</IsManuallyRouted>
@@ -1122,6 +1103,128 @@
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityAssociation</TypeName> <TypeName>EntityDeveloper.EntityFrameworkCore.EntityAssociation</TypeName>
</Oid> </Oid>
</Model> </Model>
<Model xsi:type="EnumTypeVwModel">
<CustomProperties>
<OID>58</OID>
<Parent>0</Parent>
</CustomProperties>
<Children>
<Model xsi:type="PropertiesVwModel">
<CustomProperties>
<OID>59</OID>
<Parent>58</Parent>
</CustomProperties>
<Children>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>60</OID>
<Parent>59</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>0.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>9ff50531-16aa-4d56-acfa-cb983730f31c</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>61</OID>
<Parent>59</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>18.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>241d5c4f-cd27-424c-bdae-6afbe2cb9f50</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>62</OID>
<Parent>59</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>36.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>a937ae3b-e838-4358-a5f0-a3f9f90c995b</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>63</OID>
<Parent>59</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>54.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>9b51d8d2-0901-4bee-aa6a-c62a0508b7c0</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
</Children>
<Size>
<Width>145 px</Width>
<Height>72 px</Height>
</Size>
<MaxSize>
<Width>0 px</Width>
<Height>73 px</Height>
</MaxSize>
</Model>
</Children>
<Location>
<X>40 px</X>
<Y>-160 px</Y>
</Location>
<Size>
<Width>150 px</Width>
<Height>121 px</Height>
</Size>
<MinSize>
<Width>100 px</Width>
<Height>121 px</Height>
</MinSize>
<MaxSize>
<Width>800 px</Width>
<Height>121 px</Height>
</MaxSize>
<Ports />
<Oid xsi:type="SchemaModelOID">
<Path>01b07848-c72f-4d42-bdf5-6581d9c5de33</Path>
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityEnumType</TypeName>
</Oid>
<FixedHeight>22 px</FixedHeight>
</Model>
</Children> </Children>
<GridSize>8 px</GridSize> <GridSize>8 px</GridSize>
<ViewPort> <ViewPort>

View File

@@ -2,12 +2,10 @@
<efcore context-namespace="FoodsharingSiegen.Server.Data" namespace="FoodsharingSiegen.Contracts.Entity" p1:name="FsContext" p1:Guid="92949983-e236-4233-8714-eeb3a8372740" xmlns:p1="http://devart.com/schemas/EntityDeveloper/1.0"> <efcore context-namespace="FoodsharingSiegen.Server.Data" namespace="FoodsharingSiegen.Contracts.Entity" p1:name="FsContext" p1:Guid="92949983-e236-4233-8714-eeb3a8372740" xmlns:p1="http://devart.com/schemas/EntityDeveloper/1.0">
<class name="$EnumTypes"> <class name="$EnumTypes">
<EnumType Name="UserType" class="UserType" p1:Guid="b1301985-6d27-413f-9f9e-ebbdfc49bbc1"> <EnumType Name="UserType" class="UserType" p1:Guid="b1301985-6d27-413f-9f9e-ebbdfc49bbc1">
<Member Name="Unverified" Value="0" p1:Guid="b046051e-682a-45ca-8471-d9c55c09ed59" /> <Member Name="Unverified" Value="100" p1:Guid="b046051e-682a-45ca-8471-d9c55c09ed59" />
<Member Name="ReadOnly" Value="10" p1:Guid="fbcf22ae-d06c-4ef4-9375-7da0116c1756" /> <Member Name="User" Value="200" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
<Member Name="WelcomeTeam" Value="20" p1:Guid="5121abf9-8963-4853-92fc-38b4be002089" /> <Member Name="Admin" Value="300" p1:Guid="833a2e4b-3cf7-476c-9a9a-3aeb69315f51" />
<Member Name="StoreManager" Value="30" p1:Guid="9d01dc6b-a794-47f8-ac79-0ff53861181c" /> <Member Name="nix" Value="50" p1:Guid="23192dfc-203b-472d-84cb-63a7708d8b67" />
<Member Name="Ambassador" Value="40" p1:Guid="b9fd95ad-d147-41df-94c7-3eb0c8eadb90" />
<Member Name="Admin" Value="50" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
</EnumType> </EnumType>
<EnumType Name="InteractionType" class="InteractionType" p1:Guid="93f9359f-3deb-4dbe-9a8b-b8949f833919"> <EnumType Name="InteractionType" class="InteractionType" p1:Guid="93f9359f-3deb-4dbe-9a8b-b8949f833919">
<Member Name="EinAb" Value="10" p1:Guid="f2ad51e2-93c8-4c70-8620-b3f9fc8fe484" /> <Member Name="EinAb" Value="10" p1:Guid="f2ad51e2-93c8-4c70-8620-b3f9fc8fe484" />
@@ -18,6 +16,12 @@
<Member Name="Verify" Value="60" p1:Guid="21fa1cd1-2e3c-4a85-bd1b-5780549d0835" /> <Member Name="Verify" Value="60" p1:Guid="21fa1cd1-2e3c-4a85-bd1b-5780549d0835" />
<Member Name="Complete" Value="70" p1:Guid="4c471e6c-91e8-489e-8a3d-41bee5acf5e3" /> <Member Name="Complete" Value="70" p1:Guid="4c471e6c-91e8-489e-8a3d-41bee5acf5e3" />
</EnumType> </EnumType>
<EnumType Name="UserGroup" class="UserGroup" p1:Guid="01b07848-c72f-4d42-bdf5-6581d9c5de33">
<Member Name="ReadOnly" Value="100" p1:Guid="9ff50531-16aa-4d56-acfa-cb983730f31c" />
<Member Name="WelcomeTeam" Value="200" p1:Guid="241d5c4f-cd27-424c-bdae-6afbe2cb9f50" />
<Member Name="StoreManager" Value="300" p1:Guid="a937ae3b-e838-4358-a5f0-a3f9f90c995b" />
<Member Name="Ambassador" Value="400" p1:Guid="9b51d8d2-0901-4bee-aa6a-c62a0508b7c0" />
</EnumType>
</class> </class>
<class name="User" entity-set="Users" p1:Guid="f956d4e9-7523-4b77-96be-10cbe0cc6929"> <class name="User" entity-set="Users" p1:Guid="f956d4e9-7523-4b77-96be-10cbe0cc6929">
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="ba4bfd64-dca0-4716-beff-1c571eb08665"> <id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="ba4bfd64-dca0-4716-beff-1c571eb08665">
@@ -41,6 +45,9 @@
<property name="EncryptedPassword" type="String" p1:ValidateRequired="true" p1:Guid="0e030886-d23e-4293-aeea-86f0a5c53d4e"> <property name="EncryptedPassword" type="String" p1:ValidateRequired="true" p1:Guid="0e030886-d23e-4293-aeea-86f0a5c53d4e">
<column name="" /> <column name="" />
</property> </property>
<property name="Groups" type="String" p1:ValidateRequired="true" p1:Guid="bf41429c-3b00-4d34-9851-bf35a3649fd2">
<column name="" />
</property>
</class> </class>
<class name="Prospect" entity-set="Prospects" p1:Guid="2f24182f-047a-4dba-a926-ddb2044ce3a3"> <class name="Prospect" entity-set="Prospects" p1:Guid="2f24182f-047a-4dba-a926-ddb2044ce3a3">
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="be4ea414-f058-4b82-ab45-43750869702c"> <id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="be4ea414-f058-4b82-ab45-43750869702c">

View File

@@ -2,7 +2,7 @@
// This is auto-generated code. // This is auto-generated code.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template. // This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 04.04.2022 16:38:40 // Code is generated on: 05.04.2022 16:38:00
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code. // This is auto-generated code.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template. // This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 04.04.2022 16:38:40 // Code is generated on: 05.04.2022 16:38:00
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code. // This is auto-generated code.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template. // This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 04.04.2022 16:38:40 // Code is generated on: 05.04.2022 16:38:00
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code. // This is auto-generated code.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template. // This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 04.04.2022 16:38:40 // Code is generated on: 05.04.2022 16:38:00
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@@ -40,6 +40,8 @@ namespace FoodsharingSiegen.Contracts.Entity
public virtual string EncryptedPassword { get; set; } public virtual string EncryptedPassword { get; set; }
public virtual string Groups { get; set; }
public virtual IList<Interaction> Interactions { get; set; } public virtual IList<Interaction> Interactions { get; set; }
#region Extensibility Method Definitions #region Extensibility Method Definitions

View File

@@ -1,23 +1,42 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using FoodsharingSiegen.Shared.Helper; using FoodsharingSiegen.Shared.Helper;
namespace FoodsharingSiegen.Contracts.Entity namespace FoodsharingSiegen.Contracts.Entity
{ {
/// <summary>
/// The user class (a. beging, 06.04.2022)
/// </summary>
public partial class User public partial class User
{ {
#region Public Properties
/// <summary>
/// Gets or sets the value of the groups list (ab)
/// </summary>
[NotMapped]
public List<UserGroup> GroupsList
{
get
{
if (string.IsNullOrWhiteSpace(Groups)) return new List<UserGroup>();
var stringList = Groups.Split(",");
var enumList = stringList.Where(x => !string.IsNullOrWhiteSpace(x)).Select(Enum.Parse<UserGroup>).ToList();
return enumList;
}
set => Groups = string.Join(",", value);
}
/// <summary>
/// Gets or sets the value of the password (ab)
/// </summary>
[NotMapped] [NotMapped]
public string Password public string Password
{ {
get => AuthHelper.Decrypt(EncryptedPassword); get => AuthHelper.TryDecrypt(EncryptedPassword, out var password) ? password : string.Empty;
set => EncryptedPassword = AuthHelper.Encrypt(value); set => EncryptedPassword = AuthHelper.Encrypt(value);
} }
#endregion
} }
} }

View File

@@ -0,0 +1,28 @@
//------------------------------------------------------------------------------
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 05.04.2022 16:38:00
//
// 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.ComponentModel;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
namespace FoodsharingSiegen.Contracts.Entity
{
public enum UserGroup : int
{
ReadOnly = 100,
WelcomeTeam = 200,
StoreManager = 300,
Ambassador = 400
}
}

View File

@@ -2,7 +2,7 @@
// This is auto-generated code. // This is auto-generated code.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template. // This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 04.04.2022 16:38:40 // Code is generated on: 05.04.2022 16:38:00
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@@ -20,11 +20,9 @@ namespace FoodsharingSiegen.Contracts.Entity
{ {
public enum UserType : int public enum UserType : int
{ {
Unverified = 0, Unverified = 100,
ReadOnly = 10, User = 200,
WelcomeTeam = 20, Admin = 300,
StoreManager = 30, nix = 50
Ambassador = 40,
Admin = 50
} }
} }

View File

@@ -2,7 +2,7 @@
// This is auto-generated code. // This is auto-generated code.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template. // This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 04.04.2022 16:38:40 // Code is generated on: 05.04.2022 16:38:00
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@@ -101,6 +101,7 @@ namespace FoodsharingSiegen.Server.Data
modelBuilder.Entity<User>().Property(x => x.Name).HasColumnName(@"Name").IsRequired().ValueGeneratedNever(); modelBuilder.Entity<User>().Property(x => x.Name).HasColumnName(@"Name").IsRequired().ValueGeneratedNever();
modelBuilder.Entity<User>().Property(x => x.Created).HasColumnName(@"Created").IsRequired().ValueGeneratedNever(); modelBuilder.Entity<User>().Property(x => x.Created).HasColumnName(@"Created").IsRequired().ValueGeneratedNever();
modelBuilder.Entity<User>().Property(x => x.EncryptedPassword).HasColumnName(@"EncryptedPassword").IsRequired().ValueGeneratedNever(); modelBuilder.Entity<User>().Property(x => x.EncryptedPassword).HasColumnName(@"EncryptedPassword").IsRequired().ValueGeneratedNever();
modelBuilder.Entity<User>().Property(x => x.Groups).HasColumnName(@"Groups").IsRequired().ValueGeneratedNever();
modelBuilder.Entity<User>().HasKey(@"Id"); modelBuilder.Entity<User>().HasKey(@"Id");
} }

View File

@@ -13,6 +13,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Blazorise.DataGrid" Version="1.0.2" /> <PackageReference Include="Blazorise.DataGrid" Version="1.0.2" />
<PackageReference Include="Blazorise.Icons.Material" Version="1.0.2" /> <PackageReference Include="Blazorise.Icons.Material" Version="1.0.2" />
<PackageReference Include="Blazorise.Components" Version="1.0.2" />
<PackageReference Include="Blazorise.Material" Version="1.0.2" /> <PackageReference Include="Blazorise.Material" Version="1.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1"> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">

View File

@@ -0,0 +1,178 @@
// <auto-generated />
using System;
using FoodsharingSiegen.Server.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace FoodsharingSiegen.Server.Migrations
{
[DbContext(typeof(FsContext))]
[Migration("20220405143853_usergroups")]
partial class usergroups
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Interaction", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<bool>("Alert")
.HasColumnType("INTEGER")
.HasColumnName("Alert");
b.Property<DateTime>("Created")
.HasColumnType("TEXT")
.HasColumnName("Created");
b.Property<DateTime>("Date")
.HasColumnType("TEXT")
.HasColumnName("Date");
b.Property<string>("Info")
.HasColumnType("TEXT")
.HasColumnName("Info");
b.Property<bool>("NotNeeded")
.HasColumnType("INTEGER")
.HasColumnName("NotNeeded");
b.Property<Guid>("ProspectId")
.HasColumnType("TEXT")
.HasColumnName("ProspectId");
b.Property<int>("Type")
.HasColumnType("INTEGER")
.HasColumnName("Type");
b.Property<Guid>("UserId")
.HasColumnType("TEXT")
.HasColumnName("UserId");
b.HasKey("Id");
b.HasIndex("ProspectId");
b.HasIndex("UserId");
b.ToTable("Interactions", (string)null);
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Created")
.HasColumnType("TEXT")
.HasColumnName("Created");
b.Property<int>("FsId")
.HasColumnType("INTEGER")
.HasColumnName("FsId");
b.Property<string>("Memo")
.HasColumnType("TEXT")
.HasColumnName("Memo");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Name");
b.Property<Guid>("ProgressId")
.HasColumnType("TEXT")
.HasColumnName("ProgressId");
b.HasKey("Id");
b.ToTable("Prospects", (string)null);
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Created")
.HasColumnType("TEXT")
.HasColumnName("Created");
b.Property<string>("EncryptedPassword")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("EncryptedPassword");
b.Property<string>("Groups")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Groups");
b.Property<string>("Mail")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Mail");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Name");
b.Property<int>("Type")
.HasColumnType("INTEGER")
.HasColumnName("Type");
b.Property<bool>("Verified")
.HasColumnType("INTEGER")
.HasColumnName("Verified");
b.HasKey("Id");
b.ToTable("Users", (string)null);
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Interaction", b =>
{
b.HasOne("FoodsharingSiegen.Contracts.Entity.Prospect", "Prospect")
.WithMany("Interactions")
.HasForeignKey("ProspectId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User")
.WithMany("Interactions")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Prospect");
b.Navigation("User");
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
{
b.Navigation("Interactions");
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
{
b.Navigation("Interactions");
});
#pragma warning restore 612, 618
}
}
}

View File

@@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FoodsharingSiegen.Server.Migrations
{
public partial class usergroups : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Groups",
table: "Users",
type: "TEXT",
nullable: false,
defaultValue: "");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Groups",
table: "Users");
}
}
}

View File

@@ -114,6 +114,11 @@ namespace FoodsharingSiegen.Server.Migrations
.HasColumnType("TEXT") .HasColumnType("TEXT")
.HasColumnName("EncryptedPassword"); .HasColumnName("EncryptedPassword");
b.Property<string>("Groups")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Groups");
b.Property<string>("Mail") b.Property<string>("Mail")
.IsRequired() .IsRequired()
.HasColumnType("TEXT") .HasColumnType("TEXT")

View File

@@ -37,6 +37,14 @@ namespace FoodsharingSiegen.Server.Pages
/// </summary> /// </summary>
private List<User>? UserList { get; set; } private List<User>? UserList { get; set; }
public User? SelectedUser { get; set; }
public IEnumerable<UserGroup> UserGroups => Enum.GetValues<UserGroup>();
public List<Company> Companies { get; set; }
public List<UserGroup> SelectedCompanies { get; set; }
public List<string> SelectedCompanyTexts { get; set; } = new();
#endregion #endregion
#region Override OnAfterRenderAsync #region Override OnAfterRenderAsync
@@ -55,6 +63,21 @@ namespace FoodsharingSiegen.Server.Pages
#endregion #endregion
protected override void OnInitialized()
{
Companies = new List<Company>
{
new Company{Name = "Germany", ISO = "DE"},
new Company{Name = "USA", ISO = "US"},
new Company{Name = "England", ISO = "GB"},
new Company{Name = "Austria", ISO = "AT"}
};
SelectedCompanies = new List<UserGroup> {UserGroups.ElementAt(2)};
base.OnInitialized();
}
#region Private Method Chang #region Private Method Chang
/// <summary> /// <summary>
@@ -119,5 +142,17 @@ namespace FoodsharingSiegen.Server.Pages
} }
#endregion #endregion
private async Task SelectedChanged(List<UserGroup> arg)
{
}
}
public class Company
{
public string Name { get; set; }
public string ISO { get; set; }
} }
} }