Starts in:
1 DAY
11 HRS
51 MIN
36 SEC
Starts in:
1 D
11 H
51 M
36 S

Activities of "nick.coleman"

@gterdem

Thanks you for your help!

This is now working....

This was the key part

OneTimeRunner.Run(() => { ObjectExtensionManager.Instance .MapEfCoreProperty<IdentityUser, Title>( "Title", (entityBuilder, propertyBuilder) => { propertyBuilder.HasConversion<string>(); // If you want your Title to be seen as string } ); });

Hi,

Thanks for the quick response... Im not replacing the UI.

I think it maybe due to the way i have the value configured in the DB? The modal works when the title is null in the DB but as soon as i save a user with a value for 'Title' field i can no longer open the modal for that user and i receive the error above.

Here is the EF configuration ; ObjectExtensionManager.Instance .MapEfCoreProperty<IdentityUser, string>( UserConsts.TitleName, (entityBuilder, propertyBuilder) => { propertyBuilder.HasMaxLength(UserConsts.TitleLength); } );

Does this look ok?

I can actually create users fine, I have managed to create users but as soon as i try and edit them i get the error... are you able to try this in your example?

Thanks

nick

Hi,

Thanks but this doesn't compile for me?.

Invalid expression term 'enum'

Thanks

Nick

Did I ask this question incorrectly?

If there is no answer to this can you close so I can claim my question back please

fixed using this

https://github.com/abpframework/abp/issues/6473

while my above statement is correct it seems this is created by aclient side script error

tui-editor-Editor.min.js?_v=637436356634702071:formatted:3263 Uncaught TypeError: Cannot read property 'msie' of undefined

on this line

var isIE10 = _tuiCodeSnippet2.default.browser.msie && _tuiCodeSnippet2.default.browser.version === 10;

This stops the content editor being displayed and therefore populated

An issue with tui-editor?

Anyone have any ideas?

I think i have discoved the issue...

The New.cshtml Page in the Posts Directory uses this model

public class CreatePostViewModel { ... [HiddenInput] [DynamicStringLength(typeof(PostConsts), nameof(PostConsts.MaxContentLength))] public string Content { get; set; } .... }

This is then mapped to CreatePostDto

public class CreatePostDto { [Required] [DynamicStringLength(typeof(PostConsts), nameof(PostConsts.MaxContentLength))] public string Content { get; set; } }

The validation fails as there 'Content' is null due to it being hidden in the UI (there is no chance to enter content) and it is required on the CreatePostDto.

Does this sound correct? It just seems strange as this is kind of fundamental - to be able to add content to a blog post so it makes me think i have something wrong here?

Showing 1 to 7 of 7 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06