Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

Hi Ismail, you have the code in your inbox :-) Whenever you have time to check it, I appreciate it.

Bilal

The point is I use TFS and not git.

OK, I will give this a try. Can you guide me through an "Effective" article or video on basics needed before using Git?

Thanks

Oh sorry I didn't know that.

I emailed the code to your email. Let me know if you received it pls.

Regards Bilal

Oh okay, I will try that tool then and see how it goes.

So I use the tool to see what new files were added in the new release and add them to my project or the other way around?

What about nuget packages?

Is there somewhere online a place where you show the files affected?

Thanks

Hi, For some reason, on another machine, where I work also on the same solution through TFS, I am able to create new Tenant and login to it.

Is it something related to DB? Shall I send the solution still?

Thanks

Hey Ismail. I had a complete mess yesterday. I dropped all those efforts to create a separate module.

I am now making sure that my custom code is under 1 folder in each of .Core and .Application.

The rest of things I will keep track of, so that when I upgrade my files and nuget packages, i know when to replace manually.

I don't think other than that it will work :(

Thanks

Now, when I re-use Blog.EntityFramework in a sense I set SetInitializer(null) so that only 1 DbContext creates tables, the rest will just use the existing tables.

I then get this exception below.

So dealing with separate modules is full of exceptions and spending lots of hours to make this work.

Found more than one concrete type for given DbContext Type (Abp.Zero.EntityFramework.AbpZeroCommonDbContext`2[MainApp.Authorization.Roles.Role,MainApp.Authorization.Users.User]) define MultiTenancySideAttribute with Host. Found types: MainApp.EntityFramework.MainAppDbContext, MainApp.EntityFramework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null, MainApp.Blog.EntityFramework.MainAppBlogDbContext, MainApp.Blog.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

Ok, I removed the folder Auth from the Blog.Core module and added a reference to the MainApp.Core so that both use the same User, Role, etc.

Now, when I run the application I get this exception. I went back to check the code for the blog module, there was an attribute on the Blog DbContext as follows:

[AutoRepositoryTypes(
        typeof(ISampleBlogRepository<>),
        typeof(ISampleBlogRepository<,>),
        typeof(SampleBlogRepositoryBase<>),
        typeof(SampleBlogRepositoryBase<,>)
        )]
    public class SampleBlogDbContext : AbpZeroDbContext<BlogTenant, BlogRole, BlogUser>

Maybe Framework has changed a lot since that blog module was created. But really, why is it that difficult to create a custom module and make the application moduler?

"Can't create component 'MainApp.Blog.Posts.PostAppService' as it has dependencies to be satisfied.
↵
↵'MainApp.Blog.Posts.PostAppService' is waiting for the following dependencies:
↵- Service 'MainApp.Blog.Domain.Repositories.ISampleBlogRepository`1[[MainApp.Blog.Posts.Post, MainApp.Blog.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
↵"

Hey Jeff,

Can you please have a look at this post: #2694

Thanks

Thanks I will check it out.

Showing 331 to 340 of 461 entries