protected void Page_Load(object sender, EventArgs e) { NewsInfoImpl pl = new NewsInfoImpl(); rp.DataSource = pl.GetNewsBy_hit(5, " AND catid =" + catid); rp.DataBind(); CategoryImpl catpl = new CategoryImpl(); catname = catpl.GetCategoryById(catid).catname; }
internal static CategoryImpl GetInstance([CallerMemberName] string callerName = "") { JToken json = new JObject(); JsonSource(ref json); CategoryImpl instance = CategoryImpl.FromToken(json); InstanceFactory(ref instance, callerName); return(instance); }
static partial void InstanceFactory(ref CategoryImpl instance, [CallerMemberName] string callerName = "");