MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 4649 time(s), 2 post(s) 8 month(s) agoby YanYan

Related topics

YanYan

YanYan

8 month(s) ago
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
This content has not been rated yet. 
30 Reputation 1 Total posts
zhuber

zhuber

8 month(s) ago
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
This content has not been rated yet. 
145 Reputation 18 Total posts