Base solution for your next web application

Activities of "jasenfici"

Question

What is the proper way to include the ApexChats library? I see it is embedded within each theme folder, but the scripts and css aren't included on the Layout page for any theme.

We need to include each proper .js and .css file based on the selected theme.

This is specifically for the MVC/jQuery AspNetZero project.

Thanks!

Can PowerTools be used to generate a many-to-many relationship? Kind of like Users and Roles, where a single user may be part of many roles, and conversely one role will be assigned to many users.

I only see one-to-many capabilities where a foreign key is placed in the child entity, whereas I think a many-to-many would require a separate FK table (i.e. UserRoles).

thanks, Jasen

I am also getting this error and am running VS as an administrator. There shouldn't be any permission problems as far as I can tell.

The log file shows:

`ERROR 2022-07-26 10:55:26,158 [1 ] ToolVisualStudioExtension.Helpers.Logger - Error while copying Power Tools DLLs

Details: The file 'C:\src\subscrio\AspNetZeroRadTool\cs\Microsoft.CodeAnalysis.CSharp.resources.dll' already exists. System.IO.IOException: The file 'C:\src\app\AspNetZeroRadTool\cs\Microsoft.CodeAnalysis.CSharp.resources.dll' already exists. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.Compression.ZipFileExtensions.ExtractToFile(ZipArchiveEntry source, String destinationFileName, Boolean overwrite) at System.IO.Compression.ZipFileExtensions.ExtractToDirectory(ZipArchive source, String destinationDirectoryName) at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding) at AspNetZeroRadToolVisualStudioExtension.RadToolFileUpdater.CopyRadToolDlls(String soltionFileDirectoryPath) in D:\GitHub\aspnet-zero-rad\AspNetZeroRadToolVisualStudioExtension\AspNetZeroRadToolVisualStudioExtension\RadToolFileUpdater.cs:line 31 DEBUG 2022-07-26 10:57:59,554 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Couldn't copy RAD Tool DLLs!`

Hi ... that link just shows how to change the code that PowerTools creates, not a mechanism for maintaining all of the inevitiable additions and changes we have to make to the class after the fact.

Can't wait for partial classes.. hope it comes soon. It's been a while, as you mentioned.

Hi,

I think I asked this one years ago but is there any reason we can't have the PowerTools app generate class that are marked as Partial?

This would make life soooo much better when it comes to editing or extending the auto-generated code. We could just house our modifications, extensions, etc in separate files.

jasen

Showing 1 to 5 of 5 entries