예제 #1
0
    /// <summary>
    /// 通过与持久化实体信息相对应Xml格式的文本信息实例化到该实体信息
    /// </summary>
    /// <param name="xmlString">与持久化实体信息相对应Xml格式的文本信息</param>
    /// <returns>返回对应的实体信息</returns>
    public static T FromXml <T>(string xmlString) where T : BaseEntity, new()
    {
        ORMap <BaseEntity> ormap = new ORMap <BaseEntity>(new T(), new T());

        return(ormap.FromXml(xmlString) as T);
    }