1
您好我一直在尋找的sharparchitecture某些教程和努力都無濟於事(在線轉換器似乎沒有能夠做到這一點):C#拉姆達轉換到VB
private Action<AutoMappingExpressions> GetSetup()
{
return c =>
{
c.FindIdentity = type => type.Name == "Id";
};
}
private Action<IConventionFinder> GetConventions()
{
return c =>
{
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ForeignKeyConvention>();
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.HasManyConvention>();
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.HasManyToManyConvention>();
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ManyToManyTableNameConvention>();
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.PrimaryKeyConvention>();
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ReferenceConvention>();
c.Add<MVCTemp.Data.NHibernateMaps.Conventions.TableNameConvention>();
};
}
什麼是你的問題? – 2009-12-21 16:16:35
問題到底是什麼? – 2009-12-21 16:16:48
他可能試圖將其轉換爲VB。 – SLaks 2009-12-21 16:19:54