Mono Support Add fields to users profiles and search based on theses new fields (Last MonoX version in Azure) 

Viewed 49596 time(s), 2 post(s), 2/15/2017 6:36:19 PM - by YanYan
2/15/2017 6:36:19 PM
30 Reputation 1 Total posts

Hi guys,

Im starting to develop-Config in MonoX (last version) inside Azure. I love the technology so far, im having fun.

I have few questions for the community:

The search for peoples and profiles are tough,  just based on "name". But for a new community, peoples doesnt know who are registered so have to search by criterias and interests.

1. Is it possible to add some fields in the user profiles 
2. Search or filter based on these new fields 

Thank you very much for your help.
Yan

1
2/16/2017 9:51:24 AM
145 Reputation 18 Total posts

Hi YanYan,

You'll have to add fields in UserProfile table and then you'll have to generate your DAL entities. We have exposed MonoX DAL source code to enable all users to easily extend it. Although you will have to obtain a license for the LLBLGen Pro Designer in order to generate a custom DAL, it will enable you to open a DAL project, add new entities for tables that you've created in the database and generate a new DAL in just a few clicks. After this process is finished, you will have the access to your newly created entities across the MonoX project.

MonoX DAL is upgraded to LLBLGen version 4.1. The latest package is available on GitHub.

Then if you'd like to search on these new fields, you'll have to update or override a method in UserRepository:

EntityCollection<AspnetUsersEntity> GetUsers(string userData, bool useFullTextIndex, Guid applicationId, bool fullPrefetchPath, int pageNumber, int pageSize, out int recordCount)

Hope this can help you.

Regards,
Ċ½eljko

2
This is a demo site for MonoX. Please visit Mono Software for more info.