2015-10-25 17 views

回答

1

由於所有ServiceStack庫使用ServiceStack.Text元數據API的所有屬性,還可以添加使用下面的流暢API模型本身解耦該GetProperty()擴展方法,如:

typeof(Test) 
    .GetProperty("SomeName") 
    .AddAttributes(new AliasAttribute("p_some_name")); 

這些屬性需要他們任何ServiceStack庫訪問之前曾經在啓動時運行。