Hi i just download the new version 4.2.1 for ASP.Net Core & Angular to test on and i see the new part Web.Public and i want to know what is use for and when to use it compare to Web.Host that i use to publish to IIS server for real product
Thank you
Hi i try to create update function for PbPerson problem is when i update the fields [CreatorUserId] and [TenantId] become null data the data i have change also not update to the DB
Id CreationTime CreatorUserId DeleterUserId DeletionTime EmailAddress IsDeleted LastModificationTime LastModifierUserId Name Surname TenantId
53 2017-07-31 22:18:12.1840917 2 2 2017-07-31 22:20:10.8563334 NULL 1 NULL NULL a b 1
54 2017-07-31 22:27:05.3251989 NULL NULL NULL NULL 0 2017-07-31 22:27:05.3261990 NULL a a 0
55 2017-07-31 22:30:47.0648198 NULL NULL NULL NULL 0 2017-07-31 22:30:47.0658199 NULL a a 0
58 2017-07-31 22:36:52.3516411 NULL NULL NULL NULL 0 2017-07-31 22:36:52.3566414 NULL a c 0
i have create class:
[AutoMapTo(typeof(Person))]
public class CreateOrUpdatePersonInput
{
public int? Id { get; set; }
[Required]
[MaxLength(Person.MaxNameLength)]
public string Name { get; set; }
[Required]
[MaxLength(Person.MaxSurnameLength)]
public string Surname { get; set; }
[EmailAddress]
[MaxLength(Person.MaxEmailAddressLength)]
public string EmailAddress { get; set; }
}
and on the service
public async Task CreatePerson(CreateOrUpdatePersonInput input)//(CreatePersonInput input)
{
var person = ObjectMapper.Map<Person>(input);
await _personRepository.InsertOrUpdateAsync(person);
}
Thank you
My version is: ASP.NET CORE + ANGULAR 4.X i already check my connection string is the same because i try to create new table and its work
can you please give me the sample on how to extend OrganizationUnit class to be able to Read,Insert, Update , and delete
i just to add one more filed public string DisplayCode { get; set; }
Thank you
This is my we.config that i use
?<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
<rewrite>
<rules>
<rule name="Angular Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
After i copy and paste this code i just know that error on code from the beginning with ? and after i remove i got it to work now Thank you
How can i extend
public class OrganizationUnit : FullAuditedEntity<long>, IMayHaveTenant
{
public OrganizationUnit(int? tenantId, string displayName, long? parentId = default(long?));
}
constructor to include my DisplayCode filed to be able to call , insert and update to the database
and i also add this to the code but noting happen
[AutoMapFrom(typeof(OrganizationUnit), typeof(OrgChartExtendCode))]
public class OrganizationUnitDto : AuditedEntityDto<long>
{
public long? ParentId { get; set; }
public string Code { get; set; }
public string DisplayName { get; set; }
public int MemberCount { get; set; }
public string DisplayCode { get; set; }
}
Thank you
i publish my project separate angular run on port 80 and asp.net core run on port 2000
i will try to install IIS url rewrite module
Thank you
Hi My version: ASP.NET CORE + ANGULAR 4.X i try to follow the sample on: <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities#extending-non-abstract-entities">https://aspnetzero.com/Documents/Extend ... t-entities</a>
Up and Down not show detail
using Abp.Application.Editions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KWANP.Editions
{
public class MyEdition : Edition
{
public virtual int Price { get; set; }
}
}
Re build my project and
PM> Add-Migration "Added_MyEdition_Entity"
To undo this action, use Remove-Migration.
Then the result not same with sample
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
namespace KWANP.Migrations
{
public partial class Added_MyEdition_Entity : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}
Thank you