...
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Back.Data.Infrastructure.Repository
|
||||
public IQueryable<T> Get(Expression<Func<T, bool>> predicate)
|
||||
{
|
||||
var query = _query.AsQueryable();
|
||||
// query = query.AsNoTracking();
|
||||
query = query.AsNoTracking();
|
||||
return query.Where(predicate).AsQueryable();
|
||||
}
|
||||
public IQueryable<T> TrackingGet(Expression<Func<T, bool>> predicate)
|
||||
|
@@ -101,8 +101,8 @@ namespace Back.Data.Models
|
||||
public string? Des { get; set; }
|
||||
public InvoiceType invoiceType { get; set; }
|
||||
//شماره منحصر به فرد مالیاتی
|
||||
[MaxLength(22)]
|
||||
public string? taxid { get; set; }
|
||||
// [MaxLength(22)]
|
||||
public string taxid { get; set; } = "";
|
||||
//شماره منحصر به فرد مالیاتی صورتحساب مرجع
|
||||
[MaxLength(22)]
|
||||
public string? irtaxid { get; set; }
|
||||
@@ -160,12 +160,12 @@ namespace Back.Data.Models
|
||||
public virtual Customer Customer { get; set; }
|
||||
[ForeignKey("LastChangeUserID")]
|
||||
public virtual User user { get; set; }
|
||||
public virtual ICollection<InvoiceItem>? invoiceDetails { get; set; }
|
||||
public virtual ICollection<InvoiceItem> invoiceDetails { get; set; }
|
||||
[ForeignKey("BillReference")]
|
||||
public virtual Invoice? invoice { get; set; }
|
||||
public virtual ICollection<InvoicePayment>? payments { get; set; }
|
||||
public virtual ICollection<InvoiceStatusChang>? invoiceStatusChangs { get; set; }
|
||||
public virtual ICollection<SentTax>? sentTax { get; set; }
|
||||
public virtual ICollection<InvoicePayment> payments { get; set; }
|
||||
public virtual ICollection<InvoiceStatusChang> invoiceStatusChangs { get; set; }
|
||||
public virtual ICollection<SentTax> sentTax { get; set; }
|
||||
[ForeignKey("PatternID")]
|
||||
public virtual Pattern? pattern { get; set; }
|
||||
[ForeignKey("CompanyID")]
|
||||
|
Reference in New Issue
Block a user