Merge pull request #3 from SergioMatias94/feature/adapt-to-use-mongo
Add CollectionAttributeName and use ApplicationEnum for Agile
This commit is contained in:
		| @@ -4,6 +4,7 @@ | |||||||
| // </copyright> | // </copyright> | ||||||
| // *********************************************************************** | // *********************************************************************** | ||||||
|  |  | ||||||
|  | using Core.Blueprint.Mongo; | ||||||
| using Core.Thalos.Adapters.Common.Enums; | using Core.Thalos.Adapters.Common.Enums; | ||||||
| using MongoDB.Bson; | using MongoDB.Bson; | ||||||
| using MongoDB.Bson.Serialization.Attributes; | using MongoDB.Bson.Serialization.Attributes; | ||||||
| @@ -14,6 +15,7 @@ namespace Core.Thalos.Adapters | |||||||
|     /// <summary> |     /// <summary> | ||||||
|     /// Adapter for representing a module. |     /// Adapter for representing a module. | ||||||
|     /// </summary> |     /// </summary> | ||||||
|  |     [CollectionAttributeName("Modules")] | ||||||
|     public class ModuleAdapter : Document |     public class ModuleAdapter : Document | ||||||
|     { |     { | ||||||
|         /// <summary> |         /// <summary> | ||||||
|   | |||||||
| @@ -4,8 +4,8 @@ | |||||||
| // </copyright> | // </copyright> | ||||||
| // *********************************************************************** | // *********************************************************************** | ||||||
|  |  | ||||||
|  | using Core.Blueprint.Mongo; | ||||||
| using Core.Thalos.Adapters.Common.Constants; | using Core.Thalos.Adapters.Common.Constants; | ||||||
| using Core.Thalos.Adapters.Common.Enums; |  | ||||||
| using MongoDB.Bson; | using MongoDB.Bson; | ||||||
| using MongoDB.Bson.Serialization.Attributes; | using MongoDB.Bson.Serialization.Attributes; | ||||||
| using System.Text.Json.Serialization; | using System.Text.Json.Serialization; | ||||||
| @@ -15,6 +15,7 @@ namespace Core.Thalos.Adapters | |||||||
|     /// <summary> |     /// <summary> | ||||||
|     /// Adapter for representing a permission. |     /// Adapter for representing a permission. | ||||||
|     /// </summary> |     /// </summary> | ||||||
|  |     [CollectionAttributeName("Permissions")] | ||||||
|     public class PermissionAdapter : Document |     public class PermissionAdapter : Document | ||||||
|     { |     { | ||||||
|         /// <summary> |         /// <summary> | ||||||
|   | |||||||
| @@ -4,6 +4,7 @@ | |||||||
| // </copyright> | // </copyright> | ||||||
| // *********************************************************************** | // *********************************************************************** | ||||||
|  |  | ||||||
|  | using Core.Blueprint.Mongo; | ||||||
| using Core.Thalos.Adapters.Common.Enums; | using Core.Thalos.Adapters.Common.Enums; | ||||||
| using MongoDB.Bson; | using MongoDB.Bson; | ||||||
| using MongoDB.Bson.Serialization.Attributes; | using MongoDB.Bson.Serialization.Attributes; | ||||||
| @@ -14,6 +15,7 @@ namespace Core.Thalos.Adapters | |||||||
|     /// <summary> |     /// <summary> | ||||||
|     /// Adapter representing a role. |     /// Adapter representing a role. | ||||||
|     /// </summary> |     /// </summary> | ||||||
|  |     [CollectionAttributeName("Roles")] | ||||||
|     public class RoleAdapter : Document |     public class RoleAdapter : Document | ||||||
|     { |     { | ||||||
|         /// <summary> |         /// <summary> | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
| //     AgileWebs | //     AgileWebs | ||||||
| // </copyright> | // </copyright> | ||||||
| // *********************************************************************** | // *********************************************************************** | ||||||
| using Core.Thalos.Adapters.Common.Enums; | using Core.Blueprint.Mongo; | ||||||
| using MongoDB.Bson; | using MongoDB.Bson; | ||||||
| using MongoDB.Bson.Serialization.Attributes; | using MongoDB.Bson.Serialization.Attributes; | ||||||
| using System.Text.Json.Serialization; | using System.Text.Json.Serialization; | ||||||
| @@ -13,6 +13,7 @@ namespace Core.Thalos.Adapters | |||||||
|     /// <summary> |     /// <summary> | ||||||
|     /// Adapter representing a user. |     /// Adapter representing a user. | ||||||
|     /// </summary> |     /// </summary> | ||||||
|  |     [CollectionAttributeName("Users")] | ||||||
|     public class UserAdapter : Document |     public class UserAdapter : Document | ||||||
|     { |     { | ||||||
|         /// <summary> |         /// <summary> | ||||||
|   | |||||||
| @@ -15,28 +15,13 @@ namespace Core.Thalos.Adapters.Common.Enums | |||||||
|     public enum ApplicationsEnum |     public enum ApplicationsEnum | ||||||
|     { |     { | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// LSA Web Portal application. |         /// Thalos application. | ||||||
|         /// </summary> |         /// </summary> | ||||||
|         LSAWebPortal = 0, |         Thalos = 0, | ||||||
|  |  | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// Customer DashBoard application. |         /// DreamViewer application. | ||||||
|         /// </summary> |         /// </summary> | ||||||
|         CustomerDashboard = 1, |         DreamViewer = 1, | ||||||
|  |  | ||||||
|         /// <summary> |  | ||||||
|         /// Discover application. |  | ||||||
|         /// </summary> |  | ||||||
|         Discover = 2, |  | ||||||
|  |  | ||||||
|         /// <summary> |  | ||||||
|         /// LSA Mobile application. |  | ||||||
|         /// </summary> |  | ||||||
|         LSAMobile = 3, |  | ||||||
|  |  | ||||||
|         /// <summary> |  | ||||||
|         /// BluePrint application. |  | ||||||
|         /// </summary> |  | ||||||
|         BluePrint = 4, |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub