这是对this
的跟进我的要求稍有变化,因为我有以下对象
ul.nav li.current-menu-item:first-child a,
ul.nav li.current_page_item:first-child a {
color: #ffffff;
background: url(../gfx/menu_hover.gif) left top repeat-x;
border-top-left-radius: 7px !important; /* added !important here */
border-bottom-left-radius: 7px !important;
}
尝试根据以下条件选择说明
如果我的CultureValueId为1 //英文
public class TestA
{
public int PkTestAId { get; set; }
public int CultureValueId { get; set; }
public string SystemKey { get; set; }
public string Description { get; set; }
public IEnumerable<TestB> TestBCollection { get; set; }
}
public class TestB
{
public int PkTestBId { get; set; }
public int FkTestAId { get; set; }
public int CultureValueId { get; set; }
public string SystemKey { get; set; }
public string Description { get; set; }
}
List<TestA> a = new List<TestA>()
{
new TestA()
{
PkTestAId = 1,
CultureValueId = 1, // english
SystemKey = "lblEmpNumber",
Description = "Test A Description",
TestBCollection = new List<TestB>()
{
new TestB()
{
PkTestBId = 10,
FkTestAId = 1, // this must maps to PkTestAId
CultureValueId = 1,
SystemKey = "lblEmpNumber",
Description = "Test B Description"
},
new TestB()
{
PkTestBId = 11,
FkTestAId = 1, // this must maps to PkTestAId
CultureValueId = 23,
SystemKey = "lblEmpNumber",
Description = "Test B Second Description"
}
}
},
new TestA()
{
PkTestAId = 2,
CultureValueId = 2, // spanish
SystemKey = "lblEmpNumber",
Description = "Número de Funcionário:",
TestBCollection = new List<TestB>()
{
new TestB()
{
PkTestBId = 12,
FkTestAId = 2,
CultureValueId = 5,
SystemKey = "lblEmpNumber",
Description = ""
}
}
}
};
中选择说明属性,但是如果有值
TestA
TestB
和PkTestAId == FkTestID
在CultureValue == CultureValue
TestB
中的说明为空或为空,请选择TestB
说明如果我的CultureValueId是2 //西班牙语
TestA
中选择说明属性,但是如果有值
TestA
TestB
和PkTestAId == FkTestID
在CultureValue == CultureValue
中选择说明 - 与第一个完全相同 TestB
中的说明是TestB
我需要先查看英文版中是否存在该值(Exact
与第一个条件相同的条件)更新的 这将给出期望的结果
null or empty