示例#1
0
        public override string ToString()
        {
            const string seperator = ",";

            return
                (string.Format(
                     "\"{0}\",\"{1}\",\"{2}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\",\"{7}\",\"{8}\",\"{9}\",\"{10}\",\"{11}\"",
                     WebsiteName.ToString("G"), Url, Id, Title,
                     ImageUrls != null ? String.Join(seperator, ImageUrls) : string.Empty,
                     Price, Discount, Type, SubType, Brand,
                     SizeString, PropertiesString
                     ));
        }
示例#2
0
    public static WebsiteName[] getwebsites(string username)
    {
        List <WebsiteName>   websitename = new List <WebsiteName>();
        MyProjectDataContext dbcontext   = new MyProjectDataContext();
        var q = from a in dbcontext.Websites
                where a.Username == username
                select a;

        foreach (var a in q)
        {
            WebsiteName wname = new WebsiteName();
            wname.Name = a.WebsiteName;
            websitename.Add(wname);
        }
        return(websitename.ToArray());
    }
 protected override bool IsMatchingDirectoryEntry(DirectoryEntry e)
 {
     return(e.Properties["ServerComment"].Value.ToString().ToLower() == WebsiteName.ToLower());
 }
 partial void DeleteWebsiteName(WebsiteName instance);
 partial void UpdateWebsiteName(WebsiteName instance);
 partial void InsertWebsiteName(WebsiteName instance);