asp.net-boilerplate

Invalid Tenancy Name

穿精又带淫゛_ 提交于 2019-12-03 09:15:27
I am working on an ASP.NET Boilerplate service project. When I am saving a client, it returns an error: Tenancy Name is not valid The tenancy name contains spaces. TenantDto maps to Tenant object without any error. Database table TenancyName column is nvarchar(64) . Error occurs when it is saving. From the documentation on Tenant Management : AbpTenant class defines some base properties, most important ones are: TenancyName : This is unique name of a tenant in the application. It should not be changed normally. It can be used to allocate subdomains to tenants like ' mytenant .mydomain.com'.

How to make composite unique key in ASP.NET Boilerplate?

余生颓废 提交于 2019-12-02 16:48:23
问题 I have a table which has the Id as primary key, I want to have a composite unique key on Code and Value column. I'm trying in this way. [Table("Test")] public class Test: FullAuditedEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public virtual int Code { get; set; } [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public virtual int Value { get; set; } But it's making the composite primary key not unique key. 回答1: Try this: public class SomeClass : Entity<int> {

How to change ASP.NET Boilerplate Angular Template UI Theme (Adminbsb)

心已入冬 提交于 2019-12-02 13:59:51
问题 I'm starting a project with ASP.NET Boilerplate Angular Template but I want to change the UI theme for another as Core UI theme. someone who has worked with ASP.NET Boilerplate Angular Template could help me? 回答1: I've changed the template in many times and what I dit was put all elements of new template in relative route in abp's base template, then after that I design again the default registers (Login screen, register, users, roles, tenant) because the HTML changes, I do the changes in at

Getting Ambiguous match found exception while calling DeleteAsync

爱⌒轻易说出口 提交于 2019-12-02 12:23:03
问题 I have a table which has code as primary key instead of Id, When I call DeleteAsync method I get the exception Ambiguous match found . [Table("Test")] public class Test: FullAuditedEntity<int> { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] new public int Id { get; set; } [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public virtual int Code { get; set; } _testRepository.DeleteAsync(code); StackTrace: at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr

How to make composite unique key in ASP.NET Boilerplate?

*爱你&永不变心* 提交于 2019-12-02 09:54:33
I have a table which has the Id as primary key, I want to have a composite unique key on Code and Value column. I'm trying in this way. [Table("Test")] public class Test: FullAuditedEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public virtual int Code { get; set; } [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public virtual int Value { get; set; } But it's making the composite primary key not unique key. Try this: public class SomeClass : Entity<int> { [Column("Code")] public override int Id {get; set;} public virtual string Name { get; set; } } [DatabaseGenerated

Getting Ambiguous match found exception while calling DeleteAsync

醉酒当歌 提交于 2019-12-02 06:02:25
I have a table which has code as primary key instead of Id, When I call DeleteAsync method I get the exception Ambiguous match found . [Table("Test")] public class Test: FullAuditedEntity<int> { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] new public int Id { get; set; } [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public virtual int Code { get; set; } _testRepository.DeleteAsync(code); StackTrace: at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) at System.Type

Can't create component as it has dependencies to be satisfied

那年仲夏 提交于 2019-11-30 13:46:20
I am learning DDD, n-Tier, Repositoriess and the likes. Someone pointed me to ASP.NET Boilerplate and I decided to start a test project using that. I have never dealt with dependency injection so this is all new to me, but the DI dependency it uses ius Castle Windsor. Now, I created a Model and from this Model I created an interface. I also added a Service. Whenever I fire up the app it gives me this error: Can't create component 'TestApp.Services.MemberInfo.MemberAppService' as it has dependencies to be satisfied. 'TestApp.Services.MemberInfo.MemberAppService' is waiting for the following