Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

ajenny

@ajenny
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ADO.NET updates caching
    A ajenny

    Hi, Let's face it, I don't understand how I can do the following. Let's explain a little : * I have an online database (in fact mysql). I access this base through ByteFX's MySQLDataAdapter. * I have an application which can read data from it but also can modify them WITHOUT necessary doing a fill (updating the database back). In fact, this application could be closed without having done the updates, inserts, etc. * I do not have issues like online datas beeing changed or multi-people acceding the datas. Only this application is responsible of the database. What I want is when the application is launched again, the "not updated yet" part of the datas are still there. So I need to cache them in some file. What is the best approach to do that ? Thanks

    Database question csharp database mysql

  • C# and ADO.NET data caching
    A ajenny

    Hi, Let's face it, I don't understand how I can do the following. Let's explain a little : * I have an online database (in fact mysql). I access this base through ByteFX's MySQLDataAdapter. * I have an application which can read data from it but also can modify them WITHOUT necessary doing a fill (updating the database back). In fact, this application could be closed without having done the updates, inserts, etc. * I do not have issues like online datas beeing changed or multi-people acceding the datas. Only this application is responsible of the database. What I want is when the application is launched again, the "not updated yet" part of the datas are still there. So I need to cache them in some file. What is the best approach to do that ? Thanks

    C# csharp question database mysql

  • Persistant DefaultValueAttributes
    A ajenny

    Hi, Let's have a dream. I have a class with some properties, here a sample : public class TestClass { private int myint; private string mystring = ""; public TestClass() { } [DefaultValue(100)] public int IntProp { get { return myint; } set { myint = value; } } [DefaultValue("idea")] public string StringProp { get { return mystring ; } set { mystring = value; } } } I wonder if it is possible to set at runtime the DefaultValue for every properties. My wish is to be able to serialize theses values. So at next startup, the new defaultvalues will be used. So what are the issues ? - It's straightforward to enumerate the current DefaultValueAttribute of every properties. - I think I have to use the ICustomTypeDescriptor to get a dynamic defaultValue attribute. - I really don't know where to put the serialization and deserialization code for putting and getting back the default values. Constructor ? Desctructor ? - Another point, by setting the DefaultValueAttribute of one propertie, will it be set for every instance of the class ? Thanks for helping me. --- Alexandre Jenny

    C# json question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups