0
屬性順序是否重要?C#屬性順序 - 可序列化 - D
是這樣的:
[Serializable]
[DataContract(Name = "GuUser")]
[TSF.Attributes.Entity(
ConnectionKey = "usergroup",
TableName = "gu_user",
InsertCommand = "usp_gu_addguuser",
UpdateCommand = "usp_gu_updateguuser",
DeleteCommand = "usp_gu_deleteguuser",
SelectCommand = "usp_gu_getguuser")]
public class User : TSF.Base.BaseEntity
與此相同:
[DataContract(Name = "GuUser")]
[TSF.Attributes.Entity(
ConnectionKey = "usergroup",
TableName = "gu_user",
InsertCommand = "usp_gu_addguuser",
UpdateCommand = "usp_gu_updateguuser",
DeleteCommand = "usp_gu_deleteguuser",
SelectCommand = "usp_gu_getguuser")]
[Serializable]
public class User : TSF.Base.BaseEntity
第二種方式說 「不序列化」。我不能嘗試第一種方式。也許錯誤是不相關的。但是,這個命令是否重要?
沒有用戶具有不可序列類型 – niceman