|
hi, i'm new in c#. Is there free or commercial C# template framework available ? I used to using Visual Foxpro and my company using www.Promatrix.com framework for VFP. Master form, master detail form and others are created in this template base clasess so we do not concern for CRUD etc etc we only need to write little code to modify.
I know microsoft have entity framework and several 3rd party but its only for data access layer, what i'm looking for is a framewrok/template from data access layer and interface layer please forgive me if i compare c# with VFP
so could someone help please
Thanks
Sen
|
|
|
|
|
The framework for .Net is free e.g. 4.0 available here[^].
You need to purchase the development environment i.e. Visual Studio (unless you want to use one of the express editions).
|
|
|
|
|
Abhinav S, thank for your help.
I'm sorry if I made my self unclear between .net framework and 3rd party framework, what I'm looking for is as Rob suggest is a 3rd party to help generate or has a based class to create an application.
|
|
|
|
|
.netTiers[^] maybe what your looking for
"You get that on the big jobs."
|
|
|
|
|
RobCroll, thanks for your help.
This is exactly what I'm looking for. But is there other option beside .netTiers. I did try to google but no luck so for
|
|
|
|
|
Rockford Lhotka's CLSA[^] is the only other one I know of but it doesn't include Presentation.
CodeSmith would have others, .netTiers is just the daddy.
"You get that on the big jobs."
|
|
|
|
|
RobCroll, Thank you very much. Any other information beside these two are welcome
|
|
|
|
|
Hi,
Iam using the following query to select the distinct field1 having more counts...
I mean, the following SQL Query
<pre>select employee_position from company_labors group by employee_position having COUNT(*)>1
Suppose the data's like the following
Field1 Field2
Programmer name1
Accountant name2
Accountant name3
store keeper name4
Programmer name5
then the following will be the output.
Programmer
Accountant
Hence is it possible to convert that SQL Query to linq?
THANKS
|
|
|
|
|
var d = from r in dbc.tbl_accountant
group r.Field1 by r.Field1 into Field
where Field1.Count() > 1
select new
{
Fieldname = Field.Key
};
string strField;
foreach (var f in d)
{
strField = f.Fieldname;
}
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
|
Constructor gets called automatically but why do we need base() to call constructor in the derived class? Does it have to do something with constructor overloading and then calling one of it?
|
|
|
|
|
The base keyword can be used to choose the constructor you would call in the base class.
This example (taken from here[^]), explains this concept. If not for base , the default constructor would be called.
using System;
public class MyBase
{
int num;
public MyBase()
{
Console.WriteLine("in MyBase()");
}
public MyBase(int i )
{
num = i;
Console.WriteLine("in MyBase(int i)");
}
public int GetNum()
{
return num;
}
}
public class MyDerived: MyBase
{
public MyDerived() : base()
{
}
public MyDerived(int i) : base(i)
{
}
public static void Main()
{
MyDerived md = new MyDerived();
MyDerived md1 = new MyDerived(1);
}
}
Output
in MyBase()
in MyBase(int i)
|
|
|
|
|
+5 Excellent answer. One small suggestion: I think it would be good to emphasize ... to new learners ... that it is the parameter list that follows the derived classes constructors that matches up with the constructor in the class derived from that has that exact matching parameter list.
best, Bill
"Every two days we create as much information as we did from the dawn of civilization up until 2003". Eric Schmidt of Google.
|
|
|
|
|
Yes that is a good point - I will remember to put this into my answers from next time onwards.
Thank you.
|
|
|
|
|
But some times we may handle some parameters in the derived classes eg.
void Main()
{
Person person = new Person("Person1","Address1");
Manager manager = new Manager("Manager","Address2","North city");
Console.WriteLine (person.ToString());
Console.WriteLine (manager.ToString());
}
class Person {
public string Name {get; private set;}
public string Address {get; private set;}
public Person (string name, string address){
Name = name;
Address=address;
}
public override string ToString(){
return Name + ", " + Address;
}
}
class Manager : Person {
public string AreaManaged {get; private set;}
public Manager(string name, string address, string areaManaged) :
base(name,address){
AreaManaged = areaManaged;
}
public override string ToString(){
return base.ToString() + ", " + AreaManaged;
}
}
|
|
|
|
|
Abhinav's answer is good. Just to expand a little...
The base class's parameterless constructor, if it has one, will automatically be called if you don't specify a different base constructor, i.e. one that has parameters, explicitly.
If the base class doesn't have a parameterless constructor then you must specify which base constructor you want to call, even if there is only one.
public class Base
{
protected int id;
public Base(int id)
{
this.id = id;
}
public int ID
{
get { return id; }
}
}
public class Derived : Base
{
private string text;
public Derived(string text)
: base(1)
{
this.text = text;
}
public string Text
{
get { return text; }
set
{
text = value;
}
}
}
|
|
|
|
|
crystal reports does not work when it retrive data from database on webserver.it works fine when run on any desktop application.
this is not login problem.
my question is that is there any way to show data into
crystal report from database on webserver
i have done lots of googling but not found any answer
![Confused | :confused:](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
"does not work" does not describe what the problem is. Is it a Web app or a windows app? What is the error message (if any) you are getting? Show relevant code.
|
|
|
|
|
unable to open crystal report
its a window application . its ok when the database is on local area network.
but with wAN it throws error
|
|
|
|
|
monu_khan wrote: unable to open crystal report
Who is unable to open it? You or the Crystal Report viewer?
monu_khan wrote: error
What error?
|
|
|
|
|
|
No one is going to help you if you cannot help yourself. Even after asking umpteen times, you've not yet told what the actual error message is. So I'm going to stop here.
|
|
|
|
|
monu_khan wrote: but not found any answer
First read the following link
http://catb.org/esr/faqs/smart-questions.html[^]
Then
1. Describe in DETAIL how your code works.
2. Describe in DETAIL what your local machine looks like
3. Describe in DETAIL what your production machine looks like.
4. Describe in DETAIL exactly what you expect to happen and what does happen.
Finally what you have described so far indicates that you have an environment problem and not a code problem. Although a change to the code might fix it.
|
|
|
|
|
I wish to backup and restore my favorites from Internet Explorer using c#, can anyone tell me how to do this or point me to an example.
I appreciate any help.
Thanks in advance.
Michael
|
|
|
|
|