2012年9月25日
摘要: System.Windows.ScrollViewer_style.xaml<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="ValidationTo 阅读全文
posted @ 2012-09-25 14:34 蔚蓝海 阅读(629) 评论(0) 推荐(0) 编辑
  2012年8月21日
摘要: 在本演练中,您将了解如何在 WCF RIA Services 解决方案中设置服务器和客户端项目以使用身份验证服务。在使用 Silverlight 导航应用程序模板创建解决方案并启用 RIA Services 时,可通过添加身份验证服务来访问 ASP.NET 成员资格框架。身份验证服务可向客户端项目公开服务器项目中的身份验证、角色和配置文件。使用身份验证服务可验证用户凭据、基于角色限制对资源的访问以及存储配置文件属性。注意:Silverlight 业务应用程序会自动实现身份验证服务。有关更多信息,请参见演练:将身份验证服务用于 Silverlight 业务应用程序。必备条件除 WCF RIA S 阅读全文
posted @ 2012-08-21 11:33 蔚蓝海 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 在想要验证用户的凭据、限制对某些操作的访问,或为您客户端项目中的各个用户保留属性时,您需要向您的 WCF RIA Services 解决方案添加身份验证域服务。在传统的 ASP.NET Web 应用程序中,您可以使用 ASP.NET 成员资格框架来执行这些功能。RIA Services 基于 ASP.NET 成员资格框架构建,因为它可以通过身份验证域服务向丰富 Internet 客户端公开成员资格框架。在添加身份验证域服务后,您可以启用下列功能:身份验证 - 验证用户的凭据,并将该用户标记为已登录或已注销。角色 - 按职责对用户分组,并向组中已通过身份验证的成员授予资源权限。配置文件 - 为已 阅读全文
posted @ 2012-08-21 11:25 蔚蓝海 阅读(568) 评论(0) 推荐(0) 编辑
  2012年8月13日
摘要: View Code public class Post { public int ID { get; set; } public User author { get; set; } public DateTime post_date { get; set; } public DateTime post_date_gmt { get; set; } public string post_content { get; set; } public string post_title { get; set; }... 阅读全文
posted @ 2012-08-13 23:47 蔚蓝海 阅读(222) 评论(0) 推荐(0) 编辑
摘要: List<T>转Jsonpublic static string Obj2Json<T>(T data){try{System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new System.Runtime.Serialization.Json.DataContractJsonSerializer(data.GetType());using (MemoryStream ms = new MemoryStream()){serializer.WriteObject(ms, data 阅读全文
posted @ 2012-08-13 15:49 蔚蓝海 阅读(371) 评论(2) 推荐(0) 编辑
摘要: 这个用 EF很容易获取的 首先 cat 与 cat_a 一对多 cat_a 与 cat_b 一对多 cat_b 与post 多对一所以你要在 这些实体类里 加上对应的关系 比如 public class cat{id, name,value,virtual ICollection<cat_a> catalist }public class cat_a{id,catid,cattype,virtual cat_a }cat.where(x=>x.value=="catvalue")Include(x => x. cat_a.Select(s=>s 阅读全文
posted @ 2012-08-13 14:35 蔚蓝海 阅读(184) 评论(0) 推荐(0) 编辑
  2012年8月11日
摘要: 直接上代码了 自己理解去吧VideoPlayer.xaml<phone:PhoneApplicationPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell 阅读全文
posted @ 2012-08-11 11:53 蔚蓝海 阅读(406) 评论(1) 推荐(0) 编辑
  2012年8月8日
摘要: 转载请注明文章出处:http://www.cnblogs.com/thinkaspx地图是读取的谷歌图层。。主要是导航工具 做出来费劲呀。。马上上代码MapNavigator Code namespace ZoomwayWebGis.Controls.Generic{ [TemplatePart(Name = "PanLeft", Type = typeof(FrameworkElement))] [TemplatePart(Name = "PanRight", Type = typeof(FrameworkElement))] [TemplatePar 阅读全文
posted @ 2012-08-08 14:27 蔚蓝海 阅读(987) 评论(8) 推荐(0) 编辑
摘要: 测试代码 请勿商用定义数据读取service 的接口View Code using System;using System.Linq;namespace SimpleMvvmWpf1{ public interface ICustomerServiceAgent { void GetSearch(SearchType searchType, string keyword, Action<string, string, Exception> callBack); }}实现接口View Code using System;using System.L... 阅读全文
posted @ 2012-08-08 14:15 蔚蓝海 阅读(260) 评论(0) 推荐(0) 编辑