0

私はDataGridViewを持っており、別のテーブルを表示しています。すべて正常に機能しましたが、Entity Frameworkモデルを更新しなければならず、すべてのモデルクラスがリセットされました。今すぐ1つのクラスだけがID列を表示し、他のクラスはそれを隠す。私はこのクラスの違いが他のものと比べてわかりません。ComponentModelのBrowsable falseが特定のモデルでは機能しません

namespace KasaMP.OsnovniPodaci 
{ 
    using System; 
    using System.Collections.Generic; 
    using System.ComponentModel; 

public partial class Artikl 
{ 
    [Browsable(false)] 
    public int IDArtikli { get; set; } 
    public string Barkod { get; set; } 
    public Nullable<int> Sifra { get; set; } 
    public string Naziv { get; set; } 
    public string JedinicaMjere { get; set; } 
    public decimal Tarifa { get; set; } 
    public Nullable<decimal> ProdajnaCijena { get; set; } 
    [Browsable(false)] 
    public Nullable<bool> Flag { get; set; } 
    public Nullable<decimal> Kalo { get; set; } 
    public Nullable<decimal> NabavnaCijena { get; set; } 
    public Nullable<decimal> VeleprodajnaCijena { get; set; } 
    public Nullable<decimal> Zalihe { get; set; } 
} 
} 

enter image description here

他のモデルクラスは完全に何が起こっているのか、それを隠しますか?

namespace KasaMP.OsnovniPodaci 
{ 
    using System; 
    using System.Collections.Generic; 
    using System.ComponentModel; 

    public partial class Porez 
    { 
     [Browsable(false)] 
     public int IDPorez { get; set; } 
     public decimal Tarifa { get; set; } 
     public decimal Porez1 { get; set; } 
     public decimal PorezUsluge { get; set; } 
     public decimal PorezPotrosnje { get; set; } 
    } 
} 

enter image description here

私はこれを表示するために、同じフォームと同じDataGridViewコントロールを使用する - なぜVisual Studioは、私のArtiklクラスを識別されます。C

答えて

0

OK、それは/おそらくいくつかのVisual Studioの判明キャッシュのバグは、私は確か...

ないんだけど、それは突然 - 魔法 - 機能するようになりました...

生憎私はより良いANを書き込むことはできませんswer

関連する問題