Compare commits

..

No commits in common. "5644a2acd754618488c261caf594dc450d95a568" and "48bb5ce47a318a97914d52eb3e43e36a82a2cfff" have entirely different histories.

6 changed files with 2 additions and 18868 deletions

View File

@ -49,8 +49,6 @@ public class HospitalGroupQuery : PageInput
public string? ContactPhone { get; set; }
public string? Name { get; set; }
public bool? IsEnable { get; set; }
}

View File

@ -47,7 +47,6 @@ public class HospitalGroupService(IRepository<HospitalGroup> _hospitalGroupRepos
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.Affiliation), t => t.Affiliation.Contains(inQuery.Affiliation))
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.ContactPhone), t => t.ContactPhone.Contains(inQuery.ContactPhone))
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.ContactName), t => t.ContactName.Contains(inQuery.ContactName))
.WhereIf(!inQuery.IsEnable != null, t => t.IsEnable == inQuery.IsEnable)
.ProjectTo<HospitalGroupView>(_mapper.ConfigurationProvider);
var pageList = await hospitalGroupQueryable.SortToListAsync(inQuery);
@ -70,7 +69,6 @@ public class HospitalGroupService(IRepository<HospitalGroup> _hospitalGroupRepos
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.Affiliation), t => t.Affiliation.Contains(inQuery.Affiliation))
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.ContactPhone), t => t.ContactPhone.Contains(inQuery.ContactPhone))
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.ContactName), t => t.ContactName.Contains(inQuery.ContactName))
.WhereIf(!inQuery.IsEnable != null, t => t.IsEnable == inQuery.IsEnable)
.ProjectTo<HospitalGroupView>(_mapper.ConfigurationProvider);
var pageList = await hospitalGroupQueryable.ToPagedListAsync(inQuery);

View File

@ -31,7 +31,7 @@ namespace IRaCIS.Core.Domain.Models
public string ContactPhone { get; set; }
public bool IsEnable { get; set; }
}

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class hospitalisEnable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsEnable",
table: "HospitalGroup",
type: "bit",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsEnable",
table: "HospitalGroup");
}
}
}

View File

@ -2807,9 +2807,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<Guid>("CreateUserId")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IsEnable")
.HasColumnType("bit");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(400)
@ -17626,7 +17623,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.Trial", "Trial")
.WithMany("TrialIdentityUserList")
.WithMany()
.HasForeignKey("TrialId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
@ -18710,8 +18707,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Navigation("TrialDicList");
b.Navigation("TrialIdentityUserList");
b.Navigation("TrialReadingCriterionList");
b.Navigation("TrialSiteList");