For trust connection
, it means windows authentication.
if you want to use sql authentication, you can use User Id
and Password
.
See https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-syntax
Hi @botcoredev, have you seen this tutorial article on Azure Pipeline?
https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Setting-Up-an-Azure-Pipeline-Mvc-Core
Hi, Rad Tool only support CRUD via modal.
To implement CRUD in pages please see https://support.aspnetzero.com/QA/Questions/5965#answer-06129ebe-3f2b-8bc6-884e-39ea2f14503a
Hi,
The app/main/
is needed as the routes are added to main.routing.module.ts
which is a child route of app.routing.module.ts
and root.routing.module.ts
.
Hi @tomleonard , do you mean https://github.com/aspnetzero/aspnet-zero-samples/tree/master/PhoneBook/src ?
Hi @qbd, i think you are upgrading from ANZ 5.X to ANZ 6.X
which ANZ 6.0.0 converted the angular app into native angular with jquery dependency removed.
See https://github.com/aspnetzero/aspnet-zero-core/releases/tag/v6.0.0
as for angular 7, it was upgrade in ANZ 6.2.0
https://github.com/aspnetzero/aspnet-zero-core/releases/tag/v6.2.0
Hi @maharatha,
if you want to create new custom reposotory with new interface, the steps in the article you mentioned are required.
for example, if you want to call your custom method on repository, something like
class MyClass
{
private IMyCustomRepository _myCustom;
public void MyAction()
{
_myCustom.MyCustomRepositortAction();
}
}
however, if you want to change the implementation of some public methods, for example,
changing GetAll() to store procedure
class MyProjectRepositoryBase<TEntity>
{
public IQueryable<TEntity> GetAll()
{
return GetAllByStoreProcedure();
}
// add your common methods for all repositories
protected IQuerable<TEntity> GetAllByStoreProcedure()
{
return null;
}
}
and calling _myCustom.GetAll()
now will be calling store procedure instead of ef core query.
the above is just an example of a possible use case of the common methods
Hi, was the second db context inherit from AbpZeroCommonDbContext
?
if not, you will have to override the SaveChanges
method and call EnityHistoryHelper
yourself.
See https://github.com/aspnetboilerplate/aspnetboilerplate/blob/c8123513d66cec6788cd90871c5ced68be21b861/src/Abp.ZeroCore.EntityFrameworkCore/Zero/EntityFrameworkCore/AbpZeroCommonDbContext.cs#L155-L178
Hi,
OrganizationUnit already has IMayHaveTenant
interface which has int? TenantId
. When you added IMustHaveTenant
, EF Core most likely treating these two properties as different columns.
I would suggest to revisit the need to enforce tenant id on the extended entity or it might be easier to create another entity with IMustHaveTenant
and link it to OrganizationUnit
Also, can you provide the ANZ project version for the angular issue ?